diff src/http/ngx_http.c @ 419:47709bff4468

nginx-0.0.10-2004-09-09-19:40:48 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 09 Sep 2004 15:40:48 +0000
parents 0526206251f6
children fda5987b188d
line wrap: on
line diff
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -54,10 +54,9 @@ ngx_module_t  ngx_http_module = {
 
 static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
 {
+    char                        *rv;
     ngx_uint_t                   mi, m, s, l, p, a, n;
     ngx_uint_t                   port_found, addr_found, virtual_names;
-    char                        *rv;
-    struct sockaddr_in          *addr_in;
     ngx_conf_t                   pcf;
     ngx_array_t                  in_ports;
     ngx_listening_t             *ls;
@@ -514,6 +513,7 @@ static char *ngx_http_block(ngx_conf_t *
             ls->nonblocking = 0;
 #endif
 #endif
+            ls->addr_ntop = 1;
 
             ls->handler = ngx_http_init_connection;