From ac8047e481f0a23a0cda454865bd958bf3018ec4 Mon Sep 17 00:00:00 2001 From: stbuehler Date: Tue, 12 May 2009 06:47:00 +0000 Subject: Fix evasive.silent option (#1438) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2505 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 1 + src/mod_evasive.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 00d1a71c..142085b9 100644 --- a/NEWS +++ b/NEWS @@ -40,6 +40,7 @@ NEWS * Fix mod_cgi environment keys mangling (fixes #1969) * Fix workaround for incorrect path info/scriptname if scgi prefix is "/" (fixes #729) * Fix max-age value in mod_expire for 'modification' (fixes #1978) + * Fix evasive.silent option (#1438) - 1.4.22 - 2009-03-07 * Fix wrong lua type for CACHE_MISS/CACHE_HIT in mod_cml (fixes #533) diff --git a/src/mod_evasive.c b/src/mod_evasive.c index d6dee3e9..467bada7 100644 --- a/src/mod_evasive.c +++ b/src/mod_evasive.c @@ -73,8 +73,8 @@ SETDEFAULTS_FUNC(mod_evasive_set_defaults) { size_t i = 0; config_values_t cv[] = { - { "evasive.max-conns-per-ip", NULL, T_CONFIG_SHORT, T_CONFIG_SCOPE_CONNECTION }, /* 1 */ - { "evasive.silent", NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION }, /* 2 */ + { "evasive.max-conns-per-ip", NULL, T_CONFIG_SHORT, T_CONFIG_SCOPE_CONNECTION }, /* 0 */ + { "evasive.silent", NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION }, /* 1 */ { NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET } }; @@ -88,6 +88,7 @@ SETDEFAULTS_FUNC(mod_evasive_set_defaults) { s->silent = 0; cv[0].destination = &(s->max_conns); + cv[1].destination = &(s->silent); p->config_storage[i] = s; -- cgit v1.2.1