mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
1909ecb27a
For overlay, l2bridge, and l2tunnel, if the user does not specify a host port, windows driver will select a random port for them. This matches linux behavior. For ics and nat networks the windows OS will choose the port. Signed-off-by: Pradip Dhara <pradipd@microsoft.com>
10 lines
187 B
Go
10 lines
187 B
Go
package portallocator
|
|
|
|
const (
|
|
StartPortRange = 60000
|
|
EndPortRange = 65000
|
|
)
|
|
|
|
func getDynamicPortRange() (start int, end int, err error) {
|
|
return StartPortRange, EndPortRange, nil
|
|
}
|