diff src/event/quic/ngx_event_quic_transport.c @ 8322:44b4c6180106 quic

QUIC: multiple versions support. Draft-29 and beyond are now supported simultaneously, no need to recompile.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 19 Feb 2021 17:27:19 +0300
parents 81bb3a690c10
children 47e0009e53a7
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_transport.c
+++ b/src/event/quic/ngx_event_quic_transport.c
@@ -126,16 +126,12 @@ static ngx_int_t ngx_quic_parse_transpor
 
 
 uint32_t  ngx_quic_versions[] = {
-#if (NGX_QUIC_DRAFT_VERSION >= 33)
     /* QUICv1 */
     0x00000001,
-    NGX_QUIC_VERSION(33),
-#else
     NGX_QUIC_VERSION(29),
     NGX_QUIC_VERSION(30),
     NGX_QUIC_VERSION(31),
     NGX_QUIC_VERSION(32),
-#endif
 };
 
 #define NGX_QUIC_NVERSIONS \