mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-08-25 10:41:48 +00:00
Bump quic-go to v0.22.0 & remove SetDontFragment (as it's implemented in quic-go already)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user