From 9c388c0a7fc86beeb584744b5bd5884884111732 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 26 Aug 2008 14:19:37 +0000 Subject: *) refactor ngx_ptocidr() *) allow address without bitmask *) thus now ngx_http_geo_module accepts addresses without bitmask --- src/http/modules/ngx_http_access_module.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/http/modules/ngx_http_access_module.c') 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) { -- cgit