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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user