Latest...
This commit is contained in:
@@ -518,6 +518,24 @@ 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;
|
||||
|
||||
if (ls->quic) {
|
||||
ngx_rbtree_init(&ls->rbtree, &ls->sentinel,
|
||||
ngx_quic_rbtree_insert_value);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if !(NGX_WIN32)
|
||||
if (!ls->quic) {
|
||||
ngx_rbtree_init(&ls->rbtree, &ls->sentinel,
|
||||
ngx_udp_rbtree_insert_value);
|
||||
}
|
||||
#endif
|
||||
|
||||
stport = ngx_palloc(cf->pool, sizeof(ngx_stream_port_t));
|
||||
if (stport == NULL) {
|
||||
return NGX_CONF_ERROR;
|
||||
@@ -575,6 +593,9 @@ ngx_stream_add_addrs(ngx_conf_t *cf, ngx_stream_port_t *stport,
|
||||
addrs[i].conf.ctx = addr[i].opt.ctx;
|
||||
#if (NGX_STREAM_SSL)
|
||||
addrs[i].conf.ssl = addr[i].opt.ssl;
|
||||
#endif
|
||||
#if (NGX_STREAM_QUIC)
|
||||
addrs[i].conf.quic = addr[i].opt.quic;
|
||||
#endif
|
||||
addrs[i].conf.proxy_protocol = addr[i].opt.proxy_protocol;
|
||||
addrs[i].conf.addr_text = addr[i].opt.addr_text;
|
||||
@@ -610,6 +631,9 @@ ngx_stream_add_addrs6(ngx_conf_t *cf, ngx_stream_port_t *stport,
|
||||
addrs6[i].conf.ctx = addr[i].opt.ctx;
|
||||
#if (NGX_STREAM_SSL)
|
||||
addrs6[i].conf.ssl = addr[i].opt.ssl;
|
||||
#endif
|
||||
#if (NGX_STREAM_QUIC)
|
||||
addrs6[i].conf.quic = addr[i].opt.quic;
|
||||
#endif
|
||||
addrs6[i].conf.proxy_protocol = addr[i].opt.proxy_protocol;
|
||||
addrs6[i].conf.addr_text = addr[i].opt.addr_text;
|
||||
|
||||
Reference in New Issue
Block a user