From 58478cf293e96ecdf74876b3f729571fcffb2e1c Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 27 Jan 2023 15:11:55 +1300 Subject: [PATCH] quic: disable sending of Version Negotiation packets --- p2p/transport/quicreuse/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p2p/transport/quicreuse/config.go b/p2p/transport/quicreuse/config.go index 1bd90821eb..7114240a23 100644 --- a/p2p/transport/quicreuse/config.go +++ b/p2p/transport/quicreuse/config.go @@ -20,4 +20,6 @@ var quicConfig = &quic.Config{ Versions: []quic.VersionNumber{quic.VersionDraft29, quic.Version1}, // We don't use datagrams (yet), but this is necessary for WebTransport EnableDatagrams: true, + // The multiaddress encodes the QUIC version, thus there's no need to send Version Negotiation packets. + DisableVersionNegotiationPackets: true, }