From ffce04a04ec4bda26ad83fe0b054c1137928dfa5 Mon Sep 17 00:00:00 2001 From: Hiddify <114227601+hiddify-com@users.noreply.github.com> Date: Fri, 31 May 2024 21:01:33 +0200 Subject: [PATCH] use fix ip for wow --- config/warp.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config/warp.go b/config/warp.go index c2c07fb..1bd99c0 100644 --- a/config/warp.go +++ b/config/warp.go @@ -184,8 +184,13 @@ func patchWarp(base *option.Outbound, configOpt *ConfigOptions, final bool) erro host := base.WireGuardOptions.Server if host == "default" || host == "random" || host == "auto" || isBlockedDomain(host) { - randomIpPort, _ := warp.RandomWarpEndpoint(true, false) - base.WireGuardOptions.Server = randomIpPort.Addr().String() + if base.WireGuardOptions.Detour != "" { + base.WireGuardOptions.Server = "162.159.192.1" + } else { + randomIpPort, _ := warp.RandomWarpEndpoint(true, false) + base.WireGuardOptions.Server = randomIpPort.Addr().String() + } + } if base.WireGuardOptions.ServerPort == 0 { port := warp.RandomWarpPort()