2018-09-11 17:34:31 -04:00
|
|
|
package portallocator
|
2019-04-17 13:54:10 -04:00
|
|
|
|
2020-09-23 11:51:48 -04:00
|
|
|
const (
|
|
|
|
// defaultPortRangeStart indicates the first port in port range
|
2019-10-04 12:47:30 -04:00
|
|
|
defaultPortRangeStart = 60000
|
2020-09-23 11:51:48 -04:00
|
|
|
// defaultPortRangeEnd indicates the last port in port range
|
2019-10-04 12:47:30 -04:00
|
|
|
defaultPortRangeEnd = 65000
|
2020-09-23 11:51:48 -04:00
|
|
|
)
|
2019-04-17 13:54:10 -04:00
|
|
|
|
|
|
|
func getDynamicPortRange() (start int, end int, err error) {
|
2019-10-04 12:47:30 -04:00
|
|
|
return defaultPortRangeStart, defaultPortRangeEnd, nil
|
2019-04-17 13:54:10 -04:00
|
|
|
}
|