mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-09-23 00:16:02 +00:00
hysteria 2 prototype first public release
This commit is contained in:
12
core/internal/pmtud/unavail.go
Normal file
12
core/internal/pmtud/unavail.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build !linux && !windows
|
||||
|
||||
package pmtud
|
||||
|
||||
// quic-go's MTU discovery is enabled by default across all platforms. However, our testing has found that on certain
|
||||
// platforms (e.g. macOS) the DF bit is not set. As a result, probe packets that should never be fragmented are still
|
||||
// fragmented and transmitted. So we have decided to enable MTU discovery only on Linux and Windows for now, as we have
|
||||
// verified its functionality on these platforms.
|
||||
|
||||
const (
|
||||
DisablePathMTUDiscovery = true
|
||||
)
|
Reference in New Issue
Block a user