Possible fix for GitHub code scanning warning

This commit is contained in:
Matt Joiner 2021-05-14 10:22:21 +10:00
parent 961cbfd765
commit 8585eb09ba
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ func addrPortOrZero(addr net.Addr) int {
if err != nil {
return 0
}
i64, err := strconv.ParseInt(port, 0, 0)
i64, err := strconv.ParseUint(port, 0, 16)
if err != nil {
panic(err)
}