Skip to content

Commit 1fa7765

Browse files
fix: Added -n option in iptables list cmd to prevent reverse dns lookup (#2686)
cherry pick from commit id b8f6db6
1 parent a5e3859 commit 1fa7765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iptables/iptables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func RunCmd(version, params string) error {
109109

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

0 commit comments

Comments
 (0)