Bump quic-go to v0.22.0 & remove SetDontFragment (as it's implemented in quic-go already)

This commit is contained in:
Toby
2021-07-28 21:18:43 -07:00
parent d6aba2e1d0
commit c32ac17f62
7 changed files with 44 additions and 79 deletions

View File

@@ -10,7 +10,6 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/tobyxdd/hysteria/pkg/acl"
transport2 "github.com/tobyxdd/hysteria/pkg/transport"
"github.com/tobyxdd/hysteria/pkg/utils"
"net"
)
@@ -51,10 +50,6 @@ func NewServer(addr string, tlsConfig *tls.Config, quicConfig *quic.Config, tran
if err != nil {
return nil, err
}
if err := utils.SetDontFragment(udpConn); err != nil {
_ = udpConn.Close()
return nil, err
}
var listener quic.Listener
if obfuscator != nil {
// Wrap PacketConn with obfuscator