Merge pull request #5133 from crosbymichael/revert-hairpin

Revert "Support hairpin NAT without going through docker server"
This commit is contained in:
Guillaume J. Charmes 2014-04-10 07:06:35 -07:00
commit ec9190cdd2
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ 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