Skip to content

Commit 124084e

Browse files
author
Fabian Schneider
committed
implement base structure for output filters
1 parent 23e5517 commit 124084e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

anti_ddos_worker.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ class AntiDDoSWorker{
4848
// LoadConfig();
4949
ConnectRedisServer();
5050
}
51+
52+
static int PostContentHook(ap_filter_t* f, apr_bucket_brigade* bb) {
53+
// todo
54+
return DECLINED;
55+
}
5156

5257
static int PostRequestHook(request_rec *r){
5358
// ignore whitelist

mod_antiddos.c

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ static void module_register_hooks(apr_pool_t *p)
99
{
1010
ap_hook_handler(AntiDDoSWorker::PreRequestHook, NULL, NULL, APR_HOOK_FIRST);
1111
ap_hook_log_transaction(AntiDDoSWorker::PostRequestHook , NULL, NULL, APR_HOOK_MIDDLE);
12+
//ap_register_output_filter("antiddos_output_filter", AntiDDoSWorker::PostContentHook, NULL, AP_FTYPE_RESOURCE);
1213
ap_hook_post_config(AntiDDoSWorker::PostConfigHook, NULL, NULL, APR_HOOK_MIDDLE);
1314
}
1415

0 commit comments

Comments
 (0)