Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-11-27 17:46:01 +0300
committerIgor Sysoev <igor@sysoev.ru>2008-11-27 17:46:01 +0300
commitad22b3d1f0a8beb582b383968d1f1af344478d94 (patch)
tree5e621149ca775e7e9af3b3fd18a97fa2944c46af
parent9ad0c07bd947fcf47483f21147a0d511d4e2fe38 (diff)
r2220 merge:
set listen configuration to default server, this fixes the case, when default server is not the first one
-rw-r--r--src/http/ngx_http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c
index 3ef1dcbc8..deb3636a4 100644
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -558,6 +558,7 @@ ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
in_addr[a].core_srv_conf = cscfp[s];
in_addr[a].default_server = 1;
+ in_addr[a].listen_conf = &lscf[l].conf;
}
goto found;