Skip to content

Commit

Permalink
Merge pull request #2344 from thaJeztah/18.09_backport_revert_2286
Browse files Browse the repository at this point in the history
[18.09 backport] Revert "Merge pull request #2286 from thaJeztah/18.09_backport_iptables_legacy"
  • Loading branch information
Flavio Crisciani authored Mar 5, 2019
2 parents f3d3985 + 2a85bb5 commit 4725f21
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions iptables/iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,11 @@ func initFirewalld() {
}

func detectIptables() {
path, err := exec.LookPath("iptables-legacy") // debian has iptables-legacy and iptables-nft now
path, err := exec.LookPath("iptables")
if err != nil {
path, err = exec.LookPath("iptables")
if err != nil {
return
}
return
}

iptablesPath = path

supportsXlock = exec.Command(iptablesPath, "--wait", "-L", "-n").Run() == nil
mj, mn, mc, err := GetVersion()
if err != nil {
Expand Down

0 comments on commit 4725f21

Please sign in to comment.