1
0

Fix port range

Fixes #1
This commit is contained in:
dump_stack() 2018-10-08 18:59:05 +00:00
parent b571ffe3ae
commit 71e4952cfb

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