Skip to content

Commit 6c51292

Browse files
authored
Merge pull request #1974 from cpuguy83/iptables_no_dns_lookup
Disable hostname lookup on chain exists check
2 parents 17ca8a6 + 8dce207 commit 6c51292

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

iptables/iptables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ func RawCombinedOutputNative(args ...string) error {
456456

457457
// ExistChain checks if a chain exists
458458
func ExistChain(chain string, table Table) bool {
459-
if _, err := Raw("-t", string(table), "-L", chain); err == nil {
459+
if _, err := Raw("-t", string(table), "-nL", chain); err == nil {
460460
return true
461461
}
462462
return false

0 commit comments

Comments
 (0)