aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-02-21 10:23:30 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-02-21 10:23:30 +0000
commite10385efe5b98b18cc19fa5c3707780162691b6e (patch)
tree7b891d50f662dd62bcc7e5e9543101e650aca32b
parent5e988a4ec612d2f7440ac025e5659ea1c94a25f0 (diff)
downloadnginx-e10385efe5b98b18cc19fa5c3707780162691b6e.tar.gz
nginx-e10385efe5b98b18cc19fa5c3707780162691b6e.zip
fix implicit listen, introduced in r2513
-rw-r--r--src/http/ngx_http_core_module.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index a54a1217e..22a81dbb0 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -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) {