Skip to content

Commit

Permalink
Merge pull request #1116 from rudyfly/network
Browse files Browse the repository at this point in the history
bugfix: remove ip mask in Networks.IPAddress
  • Loading branch information
allencloud authored Apr 12, 2018
2 parents 83e1778 + 891ea22 commit e143482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/mgr/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (nm *NetworkManager) EndpointCreate(ctx context.Context, endpoint *types.En
if iface.Address() != nil {
mask, _ := iface.Address().Mask.Size()
endpointConfig.IPPrefixLen = int64(mask)
endpointConfig.IPAddress = iface.Address().String()
endpointConfig.IPAddress = iface.Address().IP.String()
}

if iface.MacAddress() != nil {
Expand Down

0 comments on commit e143482

Please sign in to comment.