From bbb56f23031816f162237153ad2ca1c8e176580e Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 25 Sep 2020 11:27:09 -0700 Subject: [PATCH] wgengine/router: fix tests on Debian Buster as regular user on machine with IPv6 --- wgengine/router/router_linux.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wgengine/router/router_linux.go b/wgengine/router/router_linux.go index e19572187..d4c75a4ef 100644 --- a/wgengine/router/router_linux.go +++ b/wgengine/router/router_linux.go @@ -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