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()