mirror of
https://github.com/yggdrasil-network/yggquic.git
synced 2025-05-19 16:35:09 +03:00
Use full MTU, disable PMTUD
This commit is contained in:
parent
b4e97a9289
commit
e8b9001573
1 changed files with 4 additions and 2 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue