mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-08 05:19:53 +00:00
15 lines
519 B
Go
15 lines
519 B
Go
//go:build linux || windows
|
|
// +build linux windows
|
|
|
|
package pmtud
|
|
|
|
// quic-go's MTU discovery is by default enabled on all platforms. However, we found that it
|
|
// does not set DF bit correctly on some platforms (macOS for example), which causes the probe
|
|
// packets (which should never be fragmented) to be fragmented and sent anyway. So here in
|
|
// Hysteria we only enable it on Linux and Windows for now, where we have tested it and can
|
|
// confirm that it works correctly.
|
|
|
|
const (
|
|
DisablePathMTUDiscovery = false
|
|
)
|