Merge pull request #2616 from arkodg/use-host-ip-for-version

Use hostIP to decide on Portmapper version
This commit is contained in:
Arko Dasgupta 2021-01-25 08:42:33 -08:00 committed by GitHub
commit 7ca3aff8d2

View file

@ -139,7 +139,7 @@ func (n *bridgeNetwork) allocatePort(bnd *types.PortBinding, ulPxyEnabled bool)
portmapper := n.portMapper
if bnd.IP.To4() == nil {
if bnd.HostIP.To4() == nil {
portmapper = n.portMapperV6
}