This commit is contained in:
Hiddify
2024-02-13 18:10:47 +01:00
parent 565406c02d
commit 1bf75fc417
2 changed files with 2 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ func patchWarp(base *option.Outbound) error {
warpConfig.WireGuardOptions.Detour = detour warpConfig.WireGuardOptions.Detour = detour
if detour != "" { if detour != "" {
if warpConfig.WireGuardOptions.MTU > 1000 { if warpConfig.WireGuardOptions.MTU > 1000 {
warpConfig.WireGuardOptions.MTU -= 100 warpConfig.WireGuardOptions.MTU -= 160
} }
warpConfig.WireGuardOptions.FakePackets = "" warpConfig.WireGuardOptions.FakePackets = ""
} }

View File

@@ -167,7 +167,7 @@ func generateWarp(license string, host string, port uint16, fakePackets string,
fakePacketsSize = "40-100" fakePacketsSize = "40-100"
} }
if fakePackets != "" && fakePacketsDelay == "" { if fakePackets != "" && fakePacketsDelay == "" {
fakePacketsDelay = "200-500" fakePacketsDelay = "20-250"
} }
// warp.UpdatePath("./secondary") // warp.UpdatePath("./secondary")