mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-06-08 13:29:56 +00:00
14 lines
480 B
Go
14 lines
480 B
Go
//go:build !linux && !windows && !darwin
|
|
|
|
package pmtud
|
|
|
|
// quic-go's MTU detection is enabled by default on all platforms.
|
|
// However, it only actually sets the DF bit on 3 supported platforms (Windows, macOS, Linux).
|
|
// As a result, on other platforms, probe packets that should never be fragmented will still
|
|
// be fragmented and transmitted. So we're only enabling it for platforms where we've verified
|
|
// its functionality for now.
|
|
|
|
const (
|
|
DisablePathMTUDiscovery = true
|
|
)
|