diff options
Diffstat (limited to 'src/http/modules/ngx_http_realip_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_realip_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_realip_module.c b/src/http/modules/ngx_http_realip_module.c index 3b2cce679..927893bbb 100644 --- a/src/http/modules/ngx_http_realip_module.c +++ b/src/http/modules/ngx_http_realip_module.c @@ -226,7 +226,7 @@ found: ngx_http_set_ctx(r, ctx, ngx_http_realip_module); - addr = inet_addr((char *) ip); + addr = ngx_inet_addr(ip, len); if (addr == INADDR_NONE) { return NGX_DECLINED; |
