diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-08-21 19:24:07 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-08-21 19:24:07 +0000 |
| commit | c5849a6381a918a5606db2bdba8c670e34c46dbb (patch) | |
| tree | 0141e389ad48610a1826e0ebde144498838b1a7f /src/http/ngx_http_core_module.c | |
| parent | 6a75019ad6847a5bf8c0dcd1f0ad87ed715add7e (diff) | |
| download | nginx-c5849a6381a918a5606db2bdba8c670e34c46dbb.tar.gz nginx-c5849a6381a918a5606db2bdba8c670e34c46dbb.tar.bz2 | |
ngx_sock_ntop() takes family from sockaddr, remove duplicate field
Diffstat (limited to 'src/http/ngx_http_core_module.c')
| -rw-r--r-- | src/http/ngx_http_core_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 30b2c0c50..754a788d1 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1625,8 +1625,8 @@ ngx_http_server_addr(ngx_http_request_t *r, ngx_str_t *s) return NGX_OK; } - s->len = ngx_inet_ntop(c->listening->family, &r->in_addr, - s->data, NGX_INET_ADDRSTRLEN); + s->len = ngx_sock_ntop((struct sockaddr *) &sin, s->data, + NGX_INET_ADDRSTRLEN); return NGX_OK; } |
