interfaces: recognize utun as a possible Tailscale interface name prefix

Signed-off-by: Michael Wilson <mewil@umich.edu>
This commit is contained in:
michael wilson 2020-02-27 17:06:50 -05:00 committed by Brad Fitzpatrick
parent 07f0fd0fdc
commit 3878f0a67a
1 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,8 @@ func isLoopbackInterfaceName(s string) bool {
func maybeTailscaleInterfaceName(s string) bool {
return strings.HasPrefix(s, "wg") ||
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