mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
setup IPv4 and IPv6 iptables chain
Signed-off-by: Benjamin Böhmke <benjamin@boehmke.net>
This commit is contained in:
parent
d14b7a5191
commit
06308f4d37
1 changed files with 5 additions and 1 deletions
|
@ -178,7 +178,11 @@ func (n *bridgeNetwork) setupIPTables(ipVersion iptables.IPVersion, maskedAddr *
|
|||
return iptable.ProgramChain(filterChain, config.BridgeName, hairpinMode, false)
|
||||
})
|
||||
|
||||
n.portMapper.SetIptablesChain(natChain, n.getNetworkBridgeName())
|
||||
if ipVersion == iptables.IPv4 {
|
||||
n.portMapper.SetIptablesChain(natChain, n.getNetworkBridgeName())
|
||||
} else {
|
||||
n.portMapperV6.SetIptablesChain(natChain, n.getNetworkBridgeName())
|
||||
}
|
||||
}
|
||||
|
||||
d.Lock()
|
||||
|
|
Loading…
Add table
Reference in a new issue