Skip to content

Commit

Permalink
fix: Added -n option in iptables list cmd to prevent reverse dns lookup
Browse files Browse the repository at this point in the history
cherry pick from commit id b8f6db6
  • Loading branch information
tamilmani1989 committed Apr 15, 2024
1 parent a5e3859 commit 58e2c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iptables/iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func RunCmd(version, params string) error {

// check if iptable chain alreay exists
func ChainExists(version, tableName, chainName string) bool {
params := fmt.Sprintf("-t %s -L %s", tableName, chainName)
params := fmt.Sprintf("-t %s -nL %s", tableName, chainName)
if err := RunCmd(version, params); err != nil {
return false
}
Expand Down

0 comments on commit 58e2c06

Please sign in to comment.