mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
HTTP/3: adjusted ALPN macro names to align with 61abb35bb8cf.
This commit is contained in:
parent
468641cbc3
commit
7e7e552a10
@ -14,7 +14,7 @@
|
||||
#include <ngx_http.h>
|
||||
|
||||
|
||||
#define NGX_HTTP_QUIC_ALPN_ADVERTISE "\x0Ahq-interop"
|
||||
#define NGX_HTTP_QUIC_ALPN_PROTO "\x0Ahq-interop"
|
||||
#define NGX_HTTP_QUIC_ALPN_DRAFT_FMT "\x05hq-%02uD"
|
||||
|
||||
|
||||
|
@ -455,15 +455,15 @@ ngx_http_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn, const unsigned char **out,
|
||||
if (hc->addr_conf->quic) {
|
||||
#if (NGX_HTTP_V3)
|
||||
if (hc->addr_conf->http3) {
|
||||
srv = (unsigned char *) NGX_HTTP_V3_ALPN_ADVERTISE;
|
||||
srvlen = sizeof(NGX_HTTP_V3_ALPN_ADVERTISE) - 1;
|
||||
srv = (unsigned char *) NGX_HTTP_V3_ALPN_PROTO;
|
||||
srvlen = sizeof(NGX_HTTP_V3_ALPN_PROTO) - 1;
|
||||
fmt = NGX_HTTP_V3_ALPN_DRAFT_FMT;
|
||||
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
srv = (unsigned char *) NGX_HTTP_QUIC_ALPN_ADVERTISE;
|
||||
srvlen = sizeof(NGX_HTTP_QUIC_ALPN_ADVERTISE) - 1;
|
||||
srv = (unsigned char *) NGX_HTTP_QUIC_ALPN_PROTO;
|
||||
srvlen = sizeof(NGX_HTTP_QUIC_ALPN_PROTO) - 1;
|
||||
fmt = NGX_HTTP_QUIC_ALPN_DRAFT_FMT;
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include <ngx_http_v3_tables.h>
|
||||
|
||||
|
||||
#define NGX_HTTP_V3_ALPN_ADVERTISE "\x02h3"
|
||||
#define NGX_HTTP_V3_ALPN_PROTO "\x02h3"
|
||||
#define NGX_HTTP_V3_ALPN_DRAFT_FMT "\x05h3-%02uD"
|
||||
|
||||
#define NGX_HTTP_V3_VARLEN_INT_LEN 4
|
||||
|
Loading…
Reference in New Issue
Block a user