summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/http')
-rw-r--r--src/http/modules/ngx_http_access_module.c8
-rw-r--r--src/http/modules/ngx_http_realip_module.c8
2 files changed, 0 insertions, 16 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) {
diff --git a/src/http/modules/ngx_http_realip_module.c b/src/http/modules/ngx_http_realip_module.c
index 9ac720058..5a79e7483 100644
--- a/src/http/modules/ngx_http_realip_module.c
+++ b/src/http/modules/ngx_http_realip_module.c
@@ -251,14 +251,6 @@ ngx_http_realip_from(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
value = cf->args->elts;
- from->addr = inet_addr((char *) value[1].data);
-
- if (from->addr != INADDR_NONE) {
- from->mask = 0xffffffff;
-
- return NGX_CONF_OK;
- }
-
rc = ngx_ptocidr(&value[1], &in_cidr);
if (rc == NGX_ERROR) {