Skip to content

Commit

Permalink
ipn/wg: cloudflare endpoints for warp; not all rpns
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Dec 15, 2024
1 parent 62f6f52 commit f44d2a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions intra/ipn/proxies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion intra/ipn/wgproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f44d2a2

Please sign in to comment.