p2p/enode: store local port number as uint16 (#23926)
This commit is contained in:
committed by
GitHub
parent
347c37b362
commit
d15e423562
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user