Merge pull request #3216 from lucas-clemente/disable-version-negotiation-option

add a config option to disable sending of Version Negotiation packets
This commit is contained in:
Marten Seemann
2021-07-06 09:47:38 -07:00
committed by GitHub
5 changed files with 47 additions and 18 deletions

View File

@@ -288,6 +288,10 @@ type Config struct {
// DisablePathMTUDiscovery disables Path MTU Discovery (RFC 8899).
// Packets will then be at most 1252 (IPv4) / 1232 (IPv6) bytes in size.
DisablePathMTUDiscovery bool
// DisableVersionNegotiationPackets disables the sending of Version Negotiation packets.
// This can be useful if version information is exchanged out-of-band.
// It has no effect for a client.
DisableVersionNegotiationPackets bool
// See https://datatracker.ietf.org/doc/draft-ietf-quic-datagram/.
// Datagrams will only be available when both peers enable datagram support.
EnableDatagrams bool