aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_quic_module.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules/ngx_http_quic_module.h')
-rw-r--r--src/http/modules/ngx_http_quic_module.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/modules/ngx_http_quic_module.h b/src/http/modules/ngx_http_quic_module.h
index e744eb197..bd4930f8a 100644
--- a/src/http/modules/ngx_http_quic_module.h
+++ b/src/http/modules/ngx_http_quic_module.h
@@ -14,9 +14,8 @@
#include <ngx_http.h>
-#define NGX_HTTP_QUIC_ALPN(s) NGX_HTTP_QUIC_ALPN_DRAFT(s)
-#define NGX_HTTP_QUIC_ALPN_DRAFT(s) "\x05hq-" #s
-#define NGX_HTTP_QUIC_ALPN_ADVERTISE NGX_HTTP_QUIC_ALPN(NGX_QUIC_DRAFT_VERSION)
+#define NGX_HTTP_QUIC_ALPN_ADVERTISE "\x02hq"
+#define NGX_HTTP_QUIC_ALPN_DRAFT_FMT "\x05hq-%02uD"
extern ngx_module_t ngx_http_quic_module;