aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r--src/http/ngx_http.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c
index 082a849a2..134eed944 100644
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -1822,7 +1822,14 @@ ngx_http_add_listening(ngx_conf_t *cf, ngx_http_conf_addr_t *addr)
ls->wildcard = addr->opt.wildcard;
#if (NGX_HTTP_V3)
+
ls->quic = addr->opt.http3;
+
+ if (ls->quic) {
+ ngx_rbtree_init(&ls->rbtree, &ls->sentinel,
+ ngx_quic_rbtree_insert_value);
+ }
+
#endif
return ls;