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 ca1f761

Browse filesBrowse files
author
Flavio Crisciani
authored
Merge pull request #2019 from thaJeztah/17.09-backport-iptables_no_dns_lookup
[17.09] Disable hostname lookup on chain exists check
2 parents de5d871 + 5c9dec8 commit ca1f761
Copy full SHA for ca1f761

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.