aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_access_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-08-26 14:19:37 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-08-26 14:19:37 +0000
commit9c388c0a7fc86beeb584744b5bd5884884111732 (patch)
tree10aabef8f9f453f5ab7880123dccdae3e41b29c9 /src/http/modules/ngx_http_access_module.c
parentcaa4a45c0f7e885460fdca075b32b44c8cf0eae2 (diff)
downloadnginx-9c388c0a7fc86beeb584744b5bd5884884111732.tar.gz
nginx-9c388c0a7fc86beeb584744b5bd5884884111732.zip
*) refactor ngx_ptocidr()
*) allow address without bitmask *) thus now ngx_http_geo_module accepts addresses without bitmask
Diffstat (limited to 'src/http/modules/ngx_http_access_module.c')
-rw-r--r--src/http/modules/ngx_http_access_module.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/http/modules/ngx_http_access_module.c b/src/http/modules/ngx_http_access_module.c
index 264423beb..12f0b9922 100644
--- a/src/http/modules/ngx_http_access_module.c
+++ b/src/http/modules/ngx_http_access_module.c
@@ -166,14 +166,6 @@ ngx_http_access_rule(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
return NGX_CONF_OK;
}
- rule->addr = inet_addr((char *) value[1].data);
-
- if (rule->addr != INADDR_NONE) {
- rule->mask = 0xffffffff;
-
- return NGX_CONF_OK;
- }
-
rc = ngx_ptocidr(&value[1], &in_cidr);
if (rc == NGX_ERROR) {