diff src/event/ngx_event_quic.h @ 8149:44991d728899 quic

QUIC: account packet header length in amplification limit. This is the restoration of 02ee77f8d53d accidentally reverted by 93be5658a250.
author Vladimir Homutov <vl@nginx.com>
date Mon, 19 Oct 2020 12:19:38 +0300
parents 93be5658a250
children 9c3be23ddbe7
line wrap: on
line diff
--- a/src/event/ngx_event_quic.h
+++ b/src/event/ngx_event_quic.h
@@ -54,7 +54,8 @@
 
 #define NGX_QUIC_STREAM_BUFSIZE              65536
 
-#define NGX_QUIC_SERVER_CID_LEN              20
+#define NGX_QUIC_MAX_CID_LEN                 20
+#define NGX_QUIC_SERVER_CID_LEN              NGX_QUIC_MAX_CID_LEN
 
 #define NGX_QUIC_SR_TOKEN_LEN                16