Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6c51292

Browse filesBrowse 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
Copy full SHA for 6c51292

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎iptables/iptables.go

Copy file name to clipboardExpand all lines: iptables/iptables.go
+1-1
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.