add a config option to disable sending of Version Negotiation packets

This commit is contained in:
Marten Seemann
2021-06-27 15:29:29 -07:00
parent e9d12b7f83
commit 3a359027b5
5 changed files with 47 additions and 18 deletions

View File

@@ -298,6 +298,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