]> git.kaiwu.me - nginx.git/commitdiff
fix implicit listen, introduced in r2513
authorIgor Sysoev <igor@sysoev.ru>
Sat, 21 Feb 2009 10:23:30 +0000 (10:23 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 21 Feb 2009 10:23:30 +0000 (10:23 +0000)
src/http/ngx_http_core_module.c

index a54a1217ea3d7ce5b3f99812ebcaee7b60e4c929..22a81dbb0beea9cd3dbc8b3f9b46d2a5b4caeab5 100644 (file)
@@ -2790,9 +2790,15 @@ ngx_http_core_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
 #endif
         sin->sin_addr.s_addr = INADDR_ANY;
 
+        ls->socklen = sizeof(struct sockaddr_in);
+
         ls->conf.backlog = NGX_LISTEN_BACKLOG;
         ls->conf.rcvbuf = -1;
         ls->conf.sndbuf = -1;
+        ls->conf.wildcard = 1;
+
+        (void) ngx_sock_ntop((struct sockaddr *) &ls->sockaddr, ls->conf.addr,
+                             NGX_SOCKADDR_STRLEN, 1);
     }
 
     if (conf->server_name.data == NULL) {