Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4581 - trunk/src/http/modules

Anonymous User
April 10, 2012 09:26AM
Author: mdounin
Date: 2012-04-10 13:25:53 +0000 (Tue, 10 Apr 2012)
New Revision: 4581
URL: http://trac.nginx.org/nginx/changeset/4581/nginx

Log:
Access module: fixed inheritance of allow/deny ipv6 rules.

Previous (incorrect) behaviour was to inherit ipv6 rules separately from
ipv4 ones. Now all rules are either inherited (if there are no rules
defined at current level) or not (if there are any rules defined).


Modified:
trunk/src/http/modules/ngx_http_access_module.c

Modified: trunk/src/http/modules/ngx_http_access_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_access_module.c 2012-04-10 11:28:59 UTC (rev 4580)
+++ trunk/src/http/modules/ngx_http_access_module.c 2012-04-10 13:25:53 UTC (rev 4581)
@@ -351,14 +351,19 @@
ngx_http_access_loc_conf_t *prev = parent;
ngx_http_access_loc_conf_t *conf = child;

+#if (NGX_HAVE_INET6)
+
+ if (conf->rules == NULL && conf->rules6 == NULL) {
+ conf->rules = prev->rules;
+ conf->rules6 = prev->rules6;
+ }
+
+#else
+
if (conf->rules == NULL) {
conf->rules = prev->rules;
}

-#if (NGX_HAVE_INET6)
- if (conf->rules6 == NULL) {
- conf->rules6 = prev->rules6;
- }
#endif

return NGX_CONF_OK;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4581 - trunk/src/http/modules

Anonymous User 1247 April 10, 2012 09:26AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready