wgengine/router: fix tests on Debian Buster as regular user on machine with IPv6
parent
fddbcb0c7b
commit
bbb56f2303
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue