mirror of
https://github.com/docker/cli.git
synced 2026-01-25 03:42:05 +03:00
Vendoring libnetwork @13be89d1cf79
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com> Upstream-commit: 70e2585d545e18757222b8ccfb21514fde7c42f4 Component: engine
This commit is contained in:
@@ -436,8 +436,8 @@ func programIngress(gwIP net.IP, ingressPorts []*PortConfig, isDelete bool) erro
|
||||
}
|
||||
|
||||
for _, chain := range []string{"OUTPUT", "PREROUTING"} {
|
||||
if !iptables.Exists(iptables.Nat, chain, "-j", ingressChain) {
|
||||
if err := iptables.RawCombinedOutput("-t", "nat", "-I", chain, "-j", ingressChain); err != nil {
|
||||
if !iptables.Exists(iptables.Nat, chain, "-m", "addrtype", "--dst-type", "LOCAL", "-j", ingressChain) {
|
||||
if err := iptables.RawCombinedOutput("-t", "nat", "-I", chain, "-m", "addrtype", "--dst-type", "LOCAL", "-j", ingressChain); err != nil {
|
||||
return fmt.Errorf("failed to add jump rule in %s to ingress chain: %v", chain, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user