comparison src/http/ngx_http_core_module.c @ 2198:5975975eedc0

ngx_sock_ntop() takes family from sockaddr, remove duplicate field
author Igor Sysoev <igor@sysoev.ru>
date Thu, 21 Aug 2008 19:24:07 +0000
parents 74477ea8074f
children 8e5bf1bc87e2
comparison
equal deleted inserted replaced
2197:74477ea8074f 2198:5975975eedc0
1623 1623
1624 if (s == NULL) { 1624 if (s == NULL) {
1625 return NGX_OK; 1625 return NGX_OK;
1626 } 1626 }
1627 1627
1628 s->len = ngx_inet_ntop(c->listening->family, &r->in_addr, 1628 s->len = ngx_sock_ntop((struct sockaddr *) &sin, s->data,
1629 s->data, NGX_INET_ADDRSTRLEN); 1629 NGX_INET_ADDRSTRLEN);
1630 1630
1631 return NGX_OK; 1631 return NGX_OK;
1632 } 1632 }
1633 1633
1634 1634