diff --git a/intra/ipn/proxies.go b/intra/ipn/proxies.go index 6d8b9af0..4424e306 100644 --- a/intra/ipn/proxies.go +++ b/intra/ipn/proxies.go @@ -1075,10 +1075,6 @@ func (px *proxifier) TestExit64() (ips string, errs error) { return strings.Join(oks, ","), nil } -func isRPN(id string) bool { - return strings.Contains(id, RPN) -} - func isWG(id string) bool { return strings.Contains(id, WG) } diff --git a/intra/ipn/wgproxy.go b/intra/ipn/wgproxy.go index b914784b..f3e015eb 100644 --- a/intra/ipn/wgproxy.go +++ b/intra/ipn/wgproxy.go @@ -433,7 +433,7 @@ func wgIfConfigOf(id string, txtptr *string) (opts wgifopts, err error) { case "endpoint": // may exist more than once // TODO: endpoint could be v4 or v6 or a hostname n := 0 - if isRPN(id) { + if id == RpnWg { // warp v4, v6, err := warp.WarpEndpoints() if err == nil { warpipcsv := v4.String() + "," + v6.String()