]> git.kaiwu.me - nginx.git/commitdiff
r2220 merge:
authorIgor Sysoev <igor@sysoev.ru>
Thu, 27 Nov 2008 14:46:01 +0000 (14:46 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 27 Nov 2008 14:46:01 +0000 (14:46 +0000)
set listen configuration to default server,
this fixes the case, when default server is not the first one

src/http/ngx_http.c

index 3ef1dcbc85d355591fce4cc7bbd3d34070f8139a..deb3636a41778d340a55dd83714c4c53bd9daffb 100644 (file)
@@ -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;