mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 21:33:57 -07:00
.
This commit is contained in:
parent
47a08ccbd4
commit
6db2b8c66d
4 changed files with 8 additions and 15 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue