interfaces: recognize utun as a possible Tailscale interface name prefix

Signed-off-by: Michael Wilson <mewil@umich.edu>
pull/115/head
michael wilson 5 years ago committed by Brad Fitzpatrick
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…
Cancel
Save