diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-10-21 19:16:38 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-10-21 19:16:38 +0000 |
commit | 5a95080cb6ea3b8df0dc353553038001c46d3a59 (patch) | |
tree | 57e4c1fb0b94098229ae0fc31359e1de72084183 /src/http/ngx_http.c | |
parent | ba3083bfce4d9eddee72439e33c91456206bfebc (diff) | |
download | nginx-5a95080cb6ea3b8df0dc353553038001c46d3a59.tar.gz nginx-5a95080cb6ea3b8df0dc353553038001c46d3a59.zip |
allow to set listen options in any server
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r-- | src/http/ngx_http.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 15b53feab..44166a4c1 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1209,6 +1209,12 @@ ngx_http_add_addresses(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf, return NGX_ERROR; } + if (lsopt->set && addr[i].opt.set) { + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, + "a duplicate listen options for %s", addr[i].opt.addr); + return NGX_ERROR; + } + /* check the duplicate "default" server for this address:port */ if (lsopt->default_server) { |