Skip to content

Commit

Permalink
using ParseUint as the original function
Browse files Browse the repository at this point in the history
  • Loading branch information
willianpc authored and sanojsubran committed Nov 12, 2024
1 parent 9e78ac2 commit b52a6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func hexGatewayToAddr(gateway string) (string, error) {
return "", errors.New("invalid gateway length")
}

n, err := strconv.ParseInt(gateway, 16, 32)
n, err := strconv.ParseUint(gateway, 16, 32)

if err != nil {
return "", err
Expand Down

0 comments on commit b52a6d1

Please sign in to comment.