mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-23 03:17:43 +00:00
wgengine/router: fix tests on Debian Buster as regular user on machine with IPv6
This commit is contained in:
@@ -1003,8 +1003,10 @@ func supportsV6() bool {
|
||||
|
||||
// Some distros ship ip6tables separately from iptables.
|
||||
if _, err := exec.LookPath("ip6tables"); err != nil {
|
||||
if _, err := os.Stat("/sbin/ip6tables"); err != nil {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user