From 1bf75fc417e60424d19183f75dfd8f0ab0f9ac88 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Tue, 13 Feb 2024 18:10:47 +0100 Subject: [PATCH] fix: MTU --- config/outbound.go | 2 +- config/warp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/outbound.go b/config/outbound.go index 306fbf3..47c8496 100644 --- a/config/outbound.go +++ b/config/outbound.go @@ -195,7 +195,7 @@ func patchWarp(base *option.Outbound) error { warpConfig.WireGuardOptions.Detour = detour if detour != "" { if warpConfig.WireGuardOptions.MTU > 1000 { - warpConfig.WireGuardOptions.MTU -= 100 + warpConfig.WireGuardOptions.MTU -= 160 } warpConfig.WireGuardOptions.FakePackets = "" } diff --git a/config/warp.go b/config/warp.go index 1af2369..d9eafaf 100644 --- a/config/warp.go +++ b/config/warp.go @@ -167,7 +167,7 @@ func generateWarp(license string, host string, port uint16, fakePackets string, fakePacketsSize = "40-100" } if fakePackets != "" && fakePacketsDelay == "" { - fakePacketsDelay = "200-500" + fakePacketsDelay = "20-250" } // warp.UpdatePath("./secondary")