mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
interfaces: recognize utun as a possible Tailscale interface name prefix
Signed-off-by: Michael Wilson <mewil@umich.edu>
This commit is contained in:
parent
07f0fd0fdc
commit
3878f0a67a
@ -76,7 +76,8 @@ func isLoopbackInterfaceName(s string) bool {
|
|||||||
func maybeTailscaleInterfaceName(s string) bool {
|
func maybeTailscaleInterfaceName(s string) bool {
|
||||||
return strings.HasPrefix(s, "wg") ||
|
return strings.HasPrefix(s, "wg") ||
|
||||||
strings.HasPrefix(s, "ts") ||
|
strings.HasPrefix(s, "ts") ||
|
||||||
strings.HasPrefix(s, "tailscale")
|
strings.HasPrefix(s, "tailscale") ||
|
||||||
|
strings.HasPrefix(s, "utun")
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsTailscaleIP reports whether ip is an IP in a range used by
|
// IsTailscaleIP reports whether ip is an IP in a range used by
|
||||||
|
Loading…
Reference in New Issue
Block a user