]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed missing quic flag on listener in the stream module.
authorVladimir Homutov <vl@nginx.com>
Fri, 4 Dec 2020 12:19:03 +0000 (15:19 +0300)
committerVladimir Homutov <vl@nginx.com>
Fri, 4 Dec 2020 12:19:03 +0000 (15:19 +0300)
src/stream/ngx_stream.c

index bc4aa09a37235ecf9e74596f8d3852ef8a27a91b..1ef689c17be10d1404cfe5f69f463612a9d40c9f 100644 (file)
@@ -514,6 +514,9 @@ ngx_stream_optimize_servers(ngx_conf_t *cf, ngx_array_t *ports)
             ls->reuseport = addr[i].opt.reuseport;
 #endif
 
+#if (NGX_STREAM_QUIC)
+            ls->quic = addr[i].opt.quic;
+#endif
             stport = ngx_palloc(cf->pool, sizeof(ngx_stream_port_t));
             if (stport == NULL) {
                 return NGX_CONF_ERROR;