From 43fba6e04dec8df46c4f1fc9fd809158cec295a8 Mon Sep 17 00:00:00 2001 From: James Tucker Date: Fri, 8 Mar 2024 15:35:13 -0800 Subject: [PATCH] util/linuxfw: correct logical error in NAT table check (#11380) Updates #11344 Updates #11354 Signed-off-by: James Tucker --- util/linuxfw/iptables_runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/linuxfw/iptables_runner.go b/util/linuxfw/iptables_runner.go index c5d915cb7..117a4fb92 100644 --- a/util/linuxfw/iptables_runner.go +++ b/util/linuxfw/iptables_runner.go @@ -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 }