p2p/enode: store local port number as uint16 (#23926)

This commit is contained in:
Serhat Şevki Dinçer
2021-11-23 17:14:08 +03:00
committed by GitHub
parent 347c37b362
commit d15e423562
2 changed files with 11 additions and 8 deletions

View File

@ -242,7 +242,7 @@ func assignTCPPort() (uint16, error) {
if err != nil {
return 0, err
}
p, err := strconv.ParseInt(port, 10, 32)
p, err := strconv.ParseUint(port, 10, 16)
if err != nil {
return 0, err
}