Skip to content

Commit

Permalink
Merge pull request #2616 from arkodg/use-host-ip-for-version
Browse files Browse the repository at this point in the history
Use hostIP to decide on Portmapper version
  • Loading branch information
arkodg authored Jan 25, 2021
2 parents 448016e + a89455d commit b350742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bridge/port_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b350742

Please sign in to comment.