From 850e3f91e56a195ac0abaefffab14c9cc4b520cd Mon Sep 17 00:00:00 2001 From: EAimTY Date: Sat, 25 Jun 2022 20:24:16 +0900 Subject: [PATCH] change the default max relay packet size to 1500 --- client/src/relay/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/relay/mod.rs b/client/src/relay/mod.rs index b242431..32cd7bd 100644 --- a/client/src/relay/mod.rs +++ b/client/src/relay/mod.rs @@ -20,7 +20,7 @@ mod request; mod stream; mod task; -pub static MAX_UDP_RELAY_PACKET_SIZE: AtomicUsize = AtomicUsize::new(65535); +pub static MAX_UDP_RELAY_PACKET_SIZE: AtomicUsize = AtomicUsize::new(1500); pub async fn init( quinn_config: ClientConfig,