aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2021-11-17 18:49:48 +0300
committerRoman Arutyunyan <arut@nginx.com>2021-11-17 18:49:48 +0300
commitbfa2d1d59932b9983e3a694ed651bc4fe349edc5 (patch)
tree53680655045f05ca8ebdf49aa4fd71bea059418e /src
parent50dd9ba7e85a8d4eeecaad8776f83adc607fd132 (diff)
downloadnginx-bfa2d1d59932b9983e3a694ed651bc4fe349edc5.tar.gz
nginx-bfa2d1d59932b9983e3a694ed651bc4fe349edc5.zip
HTTP/3: fixed compilation with QUIC, but without HTTP/3.
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_quic_module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_quic_module.c b/src/http/modules/ngx_http_quic_module.c
index 323ee2ead..9470df60e 100644
--- a/src/http/modules/ngx_http_quic_module.c
+++ b/src/http/modules/ngx_http_quic_module.c
@@ -332,8 +332,10 @@ ngx_http_quic_create_srv_conf(ngx_conf_t *cf)
conf->retry = NGX_CONF_UNSET;
conf->gso_enabled = NGX_CONF_UNSET;
+#if (NGX_HTTP_V3)
conf->stream_close_code = NGX_HTTP_V3_ERR_NO_ERROR;
conf->stream_reject_code_bidi = NGX_HTTP_V3_ERR_REQUEST_REJECTED;
+#endif
return conf;
}