Skip to content

Commit 5bcb2a5

Browse files
committed
ipn/proxies: m use core.IsAny
1 parent 118e054 commit 5bcb2a5

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

intra/ipn/proxies.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,12 +1542,7 @@ func isWG(id string) bool {
15421542
}
15431543

15441544
func IsAnyLocalProxy(ids ...string) bool {
1545-
for _, id := range ids {
1546-
if local(id) {
1547-
return true
1548-
}
1549-
}
1550-
return false
1545+
return core.IsAny(ids, local)
15511546
}
15521547

15531548
// Base, Block, Exit, Rpn64, Ingress

0 commit comments

Comments
 (0)