security update

This commit is contained in:
Tnze
2021-04-04 10:37:22 +08:00
parent 4976a5e72d
commit 0344f49f28
2 changed files with 2 additions and 3 deletions

View File

@ -56,7 +56,7 @@ func pingAndList(addr string, conn *mcnet.Conn) ([]byte, time.Duration, error) {
if err != nil {
return nil, 0, LoginErr{"split address", err}
}
port, err := strconv.Atoi(portStr)
port, err := strconv.ParseUint(portStr, 0, 16)
if err != nil {
return nil, 0, LoginErr{"parse port", err}
}