Skip to content

Commit a89455d

Browse files
author
Arko Dasgupta
committed
Use hostIP to decide on Portmapper version
Use HostIP to decide which portmapper object to store the binding in consistently in the allocate and release method (https://github.com/moby/libnetwork/blob/448016ef11309bd67541dcf4d72f1f5b7de94862/drivers/bridge/port_mapping.go#L208) Signed-off-by: Arko Dasgupta <arko.dasgupta@docker.com>
1 parent 448016e commit a89455d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)