summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_realip_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-11-02 13:51:10 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-11-02 13:51:10 +0000
commit0f25ed3d779e3d31aff3c9484c77ccb8353fcdf4 (patch)
treecbaf1f579df0a818452b4fcc9e6b8e250833b224 /src/http/modules/ngx_http_realip_module.c
parent47c88464ebc3ddd7c2c31f5026fa7b9389f42cfa (diff)
downloadnginx-0f25ed3d779e3d31aff3c9484c77ccb8353fcdf4.tar.gz
nginx-0f25ed3d779e3d31aff3c9484c77ccb8353fcdf4.tar.bz2
replace inet_addr() with ngx_inet_addr()
Diffstat (limited to 'src/http/modules/ngx_http_realip_module.c')
-rw-r--r--src/http/modules/ngx_http_realip_module.c2
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;