Skip to content

Commit

Permalink
Merge pull request moby#12900 from gaurav-gosec/master
Browse files Browse the repository at this point in the history
Make use of iptablesPath variable which has the path of iptables, instea...
  • Loading branch information
crosbymichael committed Apr 30, 2015
2 parents 6bb1986 + 1d5f1bb commit 5221fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/iptables/iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func Exists(table Table, chain string, rule ...string) bool {
// parse "iptables -S" for the rule (this checks rules in a specific chain
// in a specific table)
ruleString := strings.Join(rule, " ")
existingRules, _ := exec.Command("iptables", "-t", string(table), "-S", chain).Output()
existingRules, _ := exec.Command(iptablesPath, "-t", string(table), "-S", chain).Output()

// regex to replace ips in rule
// because MASQUERADE rule will not be exactly what was passed
Expand Down

0 comments on commit 5221fd2

Please sign in to comment.