This commit is contained in:
Adam Ierymenko 2019-09-30 20:03:03 -07:00
commit 6db2b8c66d
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
4 changed files with 8 additions and 15 deletions

View file

@ -51,7 +51,7 @@ func NewInetAddressFromString(s string) *InetAddress {
i.IP = i4
}
if len(ss) > 1 {
p64, _ := strconv.ParseUint(s, 10, 64)
p64, _ := strconv.ParseUint(ss[1], 10, 64)
i.Port = int(p64 & 0xffff)
}
}