Made NGX_QUIC_DRAFT_VERSION tunable from configure parameters.

Now it can be switched using --with-cc-opt='-DNGX_QUIC_DRAFT_VERSION=28'.
This commit is contained in:
Sergey Kandaurov 2020-05-29 15:07:46 +03:00
parent eefeb8ed3e
commit 59a7a800e1
1 changed files with 2 additions and 0 deletions

View File

@ -13,7 +13,9 @@
/* Supported drafts: 27, 28 */
#ifndef NGX_QUIC_DRAFT_VERSION
#define NGX_QUIC_DRAFT_VERSION 27
#endif
#define NGX_QUIC_VERSION (0xff000000 + NGX_QUIC_DRAFT_VERSION)
#define NGX_QUIC_MAX_SHORT_HEADER 25 /* 1 flags + 20 dcid + 4 pn */