diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-09-27 15:48:12 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-09-27 15:48:12 +0400 |
commit | f79878e5d9ba361e4658bb1899ba14c22446fd08 (patch) | |
tree | 1196b3c8a463303ea1a5409088014a4697ef385e /src/http/ngx_http.c | |
parent | 49ac2b2b45295c9c8a0e2c1b76e9f3a8f95a9ef2 (diff) |
allow duplicate listen ssl options
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r-- | src/http/ngx_http.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index f9aa44c1e..58fc7afe5 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1221,6 +1221,9 @@ ngx_http_add_addresses(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf, #if (NGX_HAVE_UNIX_DOMAIN) struct sockaddr_un *saun; #endif +#if (NGX_HTTP_SSL) + ngx_uint_t ssl; +#endif /* * we can not compare whole sockaddr struct's as kernel @@ -1270,6 +1273,10 @@ ngx_http_add_addresses(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf, /* preserve default_server bit during listen options overwriting */ default_server = addr[i].opt.default_server; +#if (NGX_HTTP_SSL) + ssl = lsopt->ssl || addr[i].opt.set; +#endif + if (lsopt->set) { if (addr[i].opt.set) { @@ -1296,6 +1303,9 @@ ngx_http_add_addresses(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf, } addr[i].opt.default_server = default_server; +#if (NGX_HTTP_SSL) + addr[i].opt.ssl = ssl; +#endif return NGX_OK; } |