]> git.kaiwu.me - nginx.git/commitdiff
HTTP/3: fixed compilation with QUIC, but without HTTP/3.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 17 Nov 2021 15:49:48 +0000 (18:49 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 17 Nov 2021 15:49:48 +0000 (18:49 +0300)
src/http/modules/ngx_http_quic_module.c

index 323ee2eadab1342636245cc85249cad7edd3e6a2..9470df60e53b62cbf982c0a7ce9d36cd17d6285d 100644 (file)
@@ -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;
 }