portallocator_unix.go 352 B

12345678910111213
  1. //go:build !windows
  2. // +build !windows
  3. package portallocator
  4. const (
  5. // defaultPortRangeStart indicates the first port in port range
  6. defaultPortRangeStart = 49153
  7. // defaultPortRangeEnd indicates the last port in port range
  8. // consistent with default /proc/sys/net/ipv4/ip_local_port_range
  9. // upper bound on linux
  10. defaultPortRangeEnd = 60999
  11. )