Browse Source

Merge pull request #1974 from cpuguy83/iptables_no_dns_lookup

Disable hostname lookup on chain exists check
Madhu Venugopal 7 năm trước cách đây
mục cha
commit
5ec49706df
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      libnetwork/iptables/iptables.go

+ 1 - 1
libnetwork/iptables/iptables.go

@@ -456,7 +456,7 @@ func RawCombinedOutputNative(args ...string) error {
 
 // ExistChain checks if a chain exists
 func ExistChain(chain string, table Table) bool {
-	if _, err := Raw("-t", string(table), "-L", chain); err == nil {
+	if _, err := Raw("-t", string(table), "-nL", chain); err == nil {
 		return true
 	}
 	return false