From f44d2a270f7e095530423cb488dcc524ca568b43 Mon Sep 17 00:00:00 2001 From: Murtaza Aliakbar Date: Sun, 15 Dec 2024 20:13:45 +0530 Subject: [PATCH] ipn/wg: cloudflare endpoints for warp; not all rpns --- intra/ipn/proxies.go | 4 ---- intra/ipn/wgproxy.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) 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()