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

Updates #11344
Updates #11354

Signed-off-by: James Tucker <james@tailscale.com>
pull/11387/head
James Tucker 9 months ago committed by GitHub
parent 50a570a83f
commit 43fba6e04d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save