2
0
mirror of synced 2025-02-22 13:48:21 +00:00

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

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