]> git.kaiwu.me - nginx.git/commitdiff
Add unsupported version into log.
authorVladimir Homutov <vl@nginx.com>
Mon, 23 Mar 2020 07:57:28 +0000 (10:57 +0300)
committerVladimir Homutov <vl@nginx.com>
Mon, 23 Mar 2020 07:57:28 +0000 (10:57 +0300)
This makes it easier to understand what client wants.

src/event/ngx_event_quic_transport.c

index b70d4da6e5f9a92613f7e41eb703a603be3db2b9..61265b3d35d83c89c37e1bb580ea0b1e7656db4f 100644 (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;
     }