From 9eb0ea4367f3aa9d78f1d507f976e5ced5d71fcf Mon Sep 17 00:00:00 2001 From: Toby Date: Wed, 23 Nov 2022 00:15:17 -0800 Subject: [PATCH] chore: add explaination comment to pmtud flag --- pkg/pmtud/avail.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/pmtud/avail.go b/pkg/pmtud/avail.go index 15dffd7..5f39f9c 100644 --- a/pkg/pmtud/avail.go +++ b/pkg/pmtud/avail.go @@ -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 )