1
0
Fork 0

Fix port range

Fixes #1
timestamps
dump_stack() 2018-10-08 18:59:05 +00:00
parent b571ffe3ae
commit 71e4952cfb
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ func getRandomAddrPort() (addr string) {
func getRandomPort(ip string) (addr string) {
// ip:1024-65535
port := rand.Int()%(65535-1024) + 1024
port := rand.Int()%(65536-1024) + 1024
return fmt.Sprintf("%s:%d", ip, port)
}