Skip to content

Commit

Permalink
fix(firewall): iptables list uses -n flag for testing iptables path (
Browse files Browse the repository at this point in the history
…#2574)

Signed-off-by: Jean-Francois Roy <[email protected]>
  • Loading branch information
jfroy authored Nov 15, 2024
1 parent f9bdb21 commit 36bb368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/firewall/support.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 36bb368

Please sign in to comment.