diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-02-21 10:23:30 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-02-21 10:23:30 +0000 |
commit | e10385efe5b98b18cc19fa5c3707780162691b6e (patch) | |
tree | 7b891d50f662dd62bcc7e5e9543101e650aca32b | |
parent | 5e988a4ec612d2f7440ac025e5659ea1c94a25f0 (diff) | |
download | nginx-e10385efe5b98b18cc19fa5c3707780162691b6e.tar.gz nginx-e10385efe5b98b18cc19fa5c3707780162691b6e.zip |
fix implicit listen, introduced in r2513
-rw-r--r-- | src/http/ngx_http_core_module.c | 6 |
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) { |