]> git.kaiwu.me - nginx.git/commitdiff
Added propagation of the "wildcard" flag to c->listening.
authorVladimir Homutov <vl@nginx.com>
Fri, 29 May 2020 10:29:24 +0000 (13:29 +0300)
committerVladimir Homutov <vl@nginx.com>
Fri, 29 May 2020 10:29:24 +0000 (13:29 +0300)
The flags was originally added by 8f038068f4bc, and is propagated correctly
in the stream module.  With QUIC introduction, http module now uses datagram
sockets as well, thus the fix.

src/http/ngx_http.c

index 10f88fabbbe43257a3d2b1781f02fff0d411077d..1b5e387dbb8979cd1166894565272e59acf090c6 100644 (file)
@@ -1795,6 +1795,8 @@ ngx_http_add_listening(ngx_conf_t *cf, ngx_http_conf_addr_t *addr)
     ls->reuseport = addr->opt.reuseport;
 #endif
 
+    ls->wildcard = addr->opt.wildcard;
+
     return ls;
 }