diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-11-02 13:51:10 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-02 13:51:10 +0000 |
| commit | 0f25ed3d779e3d31aff3c9484c77ccb8353fcdf4 (patch) | |
| tree | cbaf1f579df0a818452b4fcc9e6b8e250833b224 /src/http/modules/ngx_http_realip_module.c | |
| parent | 47c88464ebc3ddd7c2c31f5026fa7b9389f42cfa (diff) | |
| download | nginx-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.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; |
