wgengine/router: fix tests on Debian Buster as regular user on machine with IPv6

reviewable/pr796/r1
Brad Fitzpatrick 2020-09-25 11:27:09 -07:00
parent fddbcb0c7b
commit bbb56f2303
1 changed files with 3 additions and 1 deletions

View File

@ -1003,7 +1003,9 @@ func supportsV6() bool {
// Some distros ship ip6tables separately from iptables.
if _, err := exec.LookPath("ip6tables"); err != nil {
return false
if _, err := os.Stat("/sbin/ip6tables"); err != nil {
return false
}
}
return true