Add unsupported version into log.

This makes it easier to understand what client wants.
This commit is contained in:
Vladimir Homutov 2020-03-23 10:57:28 +03:00
parent 4490aefa70
commit 6a3a0ee19f

View File

@ -294,7 +294,8 @@ ngx_quic_parse_long_header(ngx_quic_header_t *pkt)
"quic flags:%xi version:%xD", pkt->flags, pkt->version);
if (pkt->version != quic_version) {
ngx_log_error(NGX_LOG_ERR, pkt->log, 0, "unsupported quic version");
ngx_log_error(NGX_LOG_ERR, pkt->log, 0,
"unsupported quic version: 0x%xi", pkt->version);
return NGX_ERROR;
}