Skip to content

Commit 7f83b5d

Browse files
authored
Hotfix: port numbers not fitting in an int16
The ideal solution would be to use uint16, however, that will require a bigger amount of change to adjust all types. Int32 should so. Signed-off-by: Saed SayedAhmed <[email protected]>
1 parent 93eec0d commit 7f83b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/configs/parsing_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func ParsePortList(s string) ([]int, error) {
306306
}
307307

308308
func parsePort(value string) (int, error) {
309-
port, err := strconv.ParseInt(value, 10, 16)
309+
port, err := strconv.ParseInt(value, 10, 32)
310310
if err != nil {
311311
return 0, fmt.Errorf("unable to parse port as integer: %w", err)
312312
}

0 commit comments

Comments
 (0)