wgengine/router: remove last non-test "ip" command usage on Linux

Updates #391

Change-Id: Ic2c3f8460b1e4b8d34b936a1725705fcc1effbae
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-11-01 15:52:24 -07:00
parent ff1954cfd9
commit 408b0923a6
2 changed files with 29 additions and 25 deletions

View File

@@ -801,3 +801,13 @@ func TestDebugListRules(t *testing.T) {
})
}
}
func TestCheckIPRuleSupportsV6(t *testing.T) {
err := checkIPRuleSupportsV6()
if err != nil && os.Getuid() != 0 {
t.Skipf("skipping, error when not root: %v", err)
}
// Just log it. For interactive testing only.
// Some machines running our tests might not have IPv6.
t.Logf("Got: %v", err)
}