Skip to content

Commit

Permalink
Use strconv.ParseInt.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Jul 16, 2024
1 parent aa55c49 commit 67518f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/config/proxyproto.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func parseProxyProtoConfig(configURL *url.URL) (*proxyProtoConfig, error) {
if len(values) != 1 {
return nil, fmt.Errorf("version option must has one value, found %v", len(values))
}
version, err := strconv.Atoi(values[0])
version, err := strconv.ParseInt(values[0], 10, 32)
if err != nil {
return nil, fmt.Errorf("version must be a number")
}
Expand Down

0 comments on commit 67518f9

Please sign in to comment.