Преглед изворни кода

add --wait to IPTables.List

Eugene Yakubovich пре 9 година
родитељ
комит
d9fd5516ca
1 измењених фајлова са 1 додато и 1 уклоњено
  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
 	var stdout, stderr bytes.Buffer
 	cmd := exec.Cmd{
 	cmd := exec.Cmd{
 		Path:   ipt.path,
 		Path:   ipt.path,
-		Args:   []string{ipt.path, "-t", table, "-S", chain},
+		Args:   []string{ipt.path, "--wait", "-t", table, "-S", chain},
 		Stdout: &stdout,
 		Stdout: &stdout,
 		Stderr: &stderr,
 		Stderr: &stderr,
 	}
 	}