hysteria 2 prototype first public release

This commit is contained in:
tobyxdd
2023-05-25 20:24:24 -07:00
parent c0ab06e961
commit 9f54aade8f
139 changed files with 5146 additions and 11657 deletions

View 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
)