Merge pull request #4442 from ibuildthecloud/hairpin-nat
Support hairpin NAT without going through docker server Upstream-commit: d2327006d659595e88da653e054f826401b05727 Component: engine
This commit is contained in:
@ -66,7 +66,6 @@ func (c *Chain) Forward(action Action, ip net.IP, port int, proto, dest_addr str
|
||||
"-p", proto,
|
||||
"-d", daddr,
|
||||
"--dport", strconv.Itoa(port),
|
||||
"!", "-i", c.Bridge,
|
||||
"-j", "DNAT",
|
||||
"--to-destination", net.JoinHostPort(dest_addr, strconv.Itoa(dest_port))); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user