mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-03 20:47:38 +03:00
chore: add explaination comment to pmtud flag
This commit is contained in:
parent
26d557a6c4
commit
9eb0ea4367
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,12 @@
|
|||
|
||||
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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue