summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim@hulthe.net>2025-08-25 11:39:16 +0200
committerJoakim Hulthe <joakim.hulthe@mullvad.net>2025-09-15 14:30:47 +0200
commit2851cd5fe930caf80601750eed652c4a098517a9 (patch)
treee22527fcd92c6aaa281e3a0bd25bb36cc76d7868
parent23fccfb8f7fc901405bbc141d9ea0472a1f08ce2 (diff)
downloadmullvadvpn-2851cd5fe930caf80601750eed652c4a098517a9.tar.xz
mullvadvpn-2851cd5fe930caf80601750eed652c4a098517a9.zip
Correct QUIC max_udp_payload_size fixme
-rw-r--r--mullvad-masque-proxy/src/lib.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/mullvad-masque-proxy/src/lib.rs b/mullvad-masque-proxy/src/lib.rs
index 2c7b64f900..ad3d79d9ff 100644
--- a/mullvad-masque-proxy/src/lib.rs
+++ b/mullvad-masque-proxy/src/lib.rs
@@ -27,10 +27,8 @@ const UDP_HEADER_SIZE: u16 = 8;
/// QUIC header size. This is conservative, real overhead varies
const QUIC_HEADER_SIZE: u16 = 41;
-/// The minimum allowed `max_udp_payload_size`-value allowed by [quinn::EndpointConfig].
-/// FIXME: A bug in the proxy server implementation sets the actual minimum value to 1252 instead
-/// of 1200, which would be according to spec.
-const MIN_MAX_UDP_PAYLOAD_SIZE: u16 = 1252;
+/// The minimum allowed `max_udp_payload_size`-value allowed by the QUIC spec.
+const MIN_MAX_UDP_PAYLOAD_SIZE: u16 = 1200;
/// This is the size of the payload that stores QUIC packets
/// MTU - IP header - UDP header