wgengine/router: fix tests on Debian Buster as regular user on machine with IPv6
@@ -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
}
