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 }