set listen configuration to default server,

this fixes the case, when default server is not the first one
This commit is contained in:
Igor Sysoev 2008-08-29 13:43:38 +00:00
parent e04b4204a8
commit d76eb9a8c8

View File

@ -1158,6 +1158,7 @@ ngx_http_init_server_lists(ngx_conf_t *cf, ngx_array_t *servers,
in_addr[a].core_srv_conf = cscfp[s];
in_addr[a].default_server = 1;
in_addr[a].listen_conf = &listen[l].conf;
}
goto found;