diff src/http/ngx_http.c @ 3768:098cd8119861

nginx uses SSL mode for a listen socket with any option set, the bug has been introduced in r3765
author Igor Sysoev <igor@sysoev.ru>
date Tue, 28 Sep 2010 06:50:52 +0000
parents d1983670b586
children b1add8bfad83 db5bfb61ef9c
line wrap: on
line diff
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -1274,7 +1274,7 @@ ngx_http_add_addresses(ngx_conf_t *cf, n
         default_server = addr[i].opt.default_server;
 
 #if (NGX_HTTP_SSL)
-        ssl = lsopt->ssl || addr[i].opt.set;
+        ssl = lsopt->ssl || addr[i].opt.ssl;
 #endif
 
         if (lsopt->set) {