Skip to content

Commit 870193c

Browse files
committed
TUN-6811: Ping group range should be parsed as int32
1 parent fdddd86 commit 870193c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ingress/icmp_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ func checkInPingGroup() error {
8181
// Example content: 999 59999
8282
found := findGroupIDRegex.FindAll(file, 2)
8383
if len(found) == 2 {
84-
groupMin, err := strconv.ParseUint(string(found[0]), 10, 16)
84+
groupMin, err := strconv.ParseInt(string(found[0]), 10, 32)
8585
if err != nil {
8686
return errors.Wrapf(err, "failed to determine minimum ping group ID")
8787
}
88-
groupMax, err := strconv.ParseUint(string(found[1]), 10, 16)
88+
groupMax, err := strconv.ParseInt(string(found[1]), 10, 32)
8989
if err != nil {
9090
return errors.Wrapf(err, "failed to determine minimum ping group ID")
9191
}

0 commit comments

Comments
 (0)