packages: lighttpd/lighttpd-mod_evasive-status_code.patch - up to r2505

glen glen at pld-linux.org
Thu May 14 00:13:46 CEST 2009


Author: glen                         Date: Wed May 13 22:13:46 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to r2505

---- Files affected:
packages/lighttpd:
   lighttpd-mod_evasive-status_code.patch (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/lighttpd/lighttpd-mod_evasive-status_code.patch
diff -u packages/lighttpd/lighttpd-mod_evasive-status_code.patch:1.4 packages/lighttpd/lighttpd-mod_evasive-status_code.patch:1.5
--- packages/lighttpd/lighttpd-mod_evasive-status_code.patch:1.4	Tue May 12 01:24:47 2009
+++ packages/lighttpd/lighttpd-mod_evasive-status_code.patch	Thu May 14 00:13:41 2009
@@ -36,20 +36,16 @@
  	if (p->config_storage) {
  		size_t i;
  		for (i = 0; i < srv->config_context->used; i++) {
-@@ -73,8 +83,10 @@
- 	size_t i = 0;
- 
+@@ -85,6 +85,8 @@
  	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 */
+ 		{ "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 */
 +		{ "evasive.http-status-code",    NULL, T_CONFIG_SHORT, T_CONFIG_SCOPE_CONNECTION },   /* 2 */
 +		{ "evasive.retry-after",         NULL, T_CONFIG_SHORT, T_CONFIG_SCOPE_CONNECTION },   /* 3 */
  		{ NULL,                          NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }
  	};
  
-@@ -84,10 +96,14 @@
+@@ -94,11 +96,15 @@
  		plugin_config *s;
  
  		s = calloc(1, sizeof(plugin_config));
@@ -61,6 +57,7 @@
 +		s->retry_after      = 0;
  
  		cv[0].destination = &(s->max_conns);
+ 		cv[1].destination = &(s->silent);
 +		cv[2].destination = &(s->http_status_code);
 +		cv[3].destination = &(s->retry_after);
  
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lighttpd/lighttpd-mod_evasive-status_code.patch?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list