util/linuxfw: correct logical error in NAT table check (#11380)

Updates #11344
Updates #11354

Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
James Tucker 2024-03-08 15:35:13 -08:00 committed by GitHub
parent 50a570a83f
commit 43fba6e04d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,7 +90,7 @@ func checkSupportsV6NAT(ipt *iptables.IPTables, logf logger.Logf) bool {
if ipt == nil || ipt.Proto() != iptables.ProtocolIPv6 {
return false
}
natListErr, _ := ipt.ListChains("nat")
_, natListErr := ipt.ListChains("nat")
if natListErr == nil {
return true
}