Skip to content

Commit f44d2a2

Browse files
committed
ipn/wg: cloudflare endpoints for warp; not all rpns
1 parent 62f6f52 commit f44d2a2

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

intra/ipn/proxies.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,10 +1075,6 @@ func (px *proxifier) TestExit64() (ips string, errs error) {
10751075
return strings.Join(oks, ","), nil
10761076
}
10771077

1078-
func isRPN(id string) bool {
1079-
return strings.Contains(id, RPN)
1080-
}
1081-
10821078
func isWG(id string) bool {
10831079
return strings.Contains(id, WG)
10841080
}

intra/ipn/wgproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func wgIfConfigOf(id string, txtptr *string) (opts wgifopts, err error) {
433433
case "endpoint": // may exist more than once
434434
// TODO: endpoint could be v4 or v6 or a hostname
435435
n := 0
436-
if isRPN(id) {
436+
if id == RpnWg { // warp
437437
v4, v6, err := warp.WarpEndpoints()
438438
if err == nil {
439439
warpipcsv := v4.String() + "," + v6.String()

0 commit comments

Comments
 (0)