From 0f25ed3d779e3d31aff3c9484c77ccb8353fcdf4 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 2 Nov 2009 13:51:10 +0000 Subject: replace inet_addr() with ngx_inet_addr() --- src/http/modules/ngx_http_realip_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules/ngx_http_realip_module.c') 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; -- cgit