Use full MTU, disable PMTUD

This commit is contained in:
Neil Alexander 2024-08-02 23:06:04 +01:00
parent b4e97a9289
commit e8b9001573
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -55,8 +55,10 @@ type yggdrasilDial struct {
func New(ygg *core.Core, cert tls.Certificate, qc *quic.Config) (*YggdrasilTransport, error) {
if qc == nil {
qc = &quic.Config{
HandshakeIdleTimeout: time.Second * 5,
MaxIdleTimeout: time.Second * 60,
HandshakeIdleTimeout: time.Second * 5,
MaxIdleTimeout: time.Second * 60,
InitialPacketSize: uint16(ygg.MTU()),
DisablePathMTUDiscovery: true,
}
}
tr := &YggdrasilTransport{