From 36bb368cadd0d2e748b950ef86e42cfa63e23193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Roy?= Date: Fri, 15 Nov 2024 07:47:08 -0800 Subject: [PATCH] fix(firewall): iptables list uses `-n` flag for testing iptables path (#2574) Signed-off-by: Jean-Francois Roy --- internal/firewall/support.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/firewall/support.go b/internal/firewall/support.go index d7164255..0295c802 100644 --- a/internal/firewall/support.go +++ b/internal/firewall/support.go @@ -92,7 +92,7 @@ func testIptablesPath(ctx context.Context, path string, // Set policy as the existing policy so no mutation is done. // This is an extra check for some buggy kernels where setting the policy // does not work. - cmd = exec.CommandContext(ctx, path, "-L", "INPUT") + cmd = exec.CommandContext(ctx, path, "-nL", "INPUT") output, err = runner.Run(cmd) if err != nil { unsupportedMessage = fmt.Sprintf("%s (%s)", output, err)