From b8f6db627ae7c80b933226bd8cf3bc3dd199eb86 Mon Sep 17 00:00:00 2001 From: tamanoha Date: Tue, 9 Apr 2024 21:08:16 -0700 Subject: [PATCH] fix: While listing iptable rules added -n option to prevent reverse dns lookup --- iptables/iptables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptables/iptables.go b/iptables/iptables.go index 2d3fdf2e22..81fb58f3c7 100644 --- a/iptables/iptables.go +++ b/iptables/iptables.go @@ -118,7 +118,7 @@ func (c *Client) RunCmd(version, params string) error { // check if iptable chain alreay exists func (c *Client) 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 := c.RunCmd(version, params); err != nil { return false }