Skip to content

Commit b350742

Browse files
authored
Merge pull request #2616 from arkodg/use-host-ip-for-version
Use hostIP to decide on Portmapper version
2 parents 448016e + a89455d commit b350742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bridge/port_mapping.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (n *bridgeNetwork) allocatePort(bnd *types.PortBinding, ulPxyEnabled bool)
139139

140140
portmapper := n.portMapper
141141

142-
if bnd.IP.To4() == nil {
142+
if bnd.HostIP.To4() == nil {
143143
portmapper = n.portMapperV6
144144
}
145145

0 commit comments

Comments
 (0)