
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
|
|
}
|