Skip to content

Commit 63c303e

Browse files
committed
Revert "Support hairpin NAT without going through docker server"
This reverts commit b39d02b. Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
1 parent 8d25eef commit 63c303e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/iptables/iptables.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func (c *Chain) Forward(action Action, ip net.IP, port int, proto, dest_addr str
6666
"-p", proto,
6767
"-d", daddr,
6868
"--dport", strconv.Itoa(port),
69+
"!", "-i", c.Bridge,
6970
"-j", "DNAT",
7071
"--to-destination", net.JoinHostPort(dest_addr, strconv.Itoa(dest_port))); err != nil {
7172
return err

0 commit comments

Comments
 (0)