Browse Source

add --wait to IPTables.List

Eugene Yakubovich 9 years ago
parent
commit
d9fd5516ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iptables/iptables.go

+ 1 - 1
iptables/iptables.go

@@ -115,7 +115,7 @@ func (ipt *IPTables) List(table, chain string) ([]string, error) {
 	var stdout, stderr bytes.Buffer
 	cmd := exec.Cmd{
 		Path:   ipt.path,
-		Args:   []string{ipt.path, "-t", table, "-S", chain},
+		Args:   []string{ipt.path, "--wait", "-t", table, "-S", chain},
 		Stdout: &stdout,
 		Stderr: &stderr,
 	}