comparison src/http/modules/ngx_http_realip_module.c @ 3267:fb4f7605505f

replace inet_addr() with ngx_inet_addr()
author Igor Sysoev <igor@sysoev.ru>
date Mon, 02 Nov 2009 13:51:10 +0000
parents c7d57b539248
children fe71be4a02f1
comparison
equal deleted inserted replaced
3266:798141791ad3 3267:fb4f7605505f
224 224
225 ctx = cln->data; 225 ctx = cln->data;
226 226
227 ngx_http_set_ctx(r, ctx, ngx_http_realip_module); 227 ngx_http_set_ctx(r, ctx, ngx_http_realip_module);
228 228
229 addr = inet_addr((char *) ip); 229 addr = ngx_inet_addr(ip, len);
230 230
231 if (addr == INADDR_NONE) { 231 if (addr == INADDR_NONE) {
232 return NGX_DECLINED; 232 return NGX_DECLINED;
233 } 233 }
234 234