chore: resolve incorrect conversion between integer types

https://github.com/nxtrace/NTrace-V1/security/code-scanning/1
 要提交的变更:
	修改:     trace/icmp_ipv4.go
This commit is contained in:
tsosunchia
2023-10-06 20:30:25 +08:00
parent b326d7bed6
commit ba27ff967b

View File

@@ -207,7 +207,7 @@ func gernerateID(ttl_int int) int {
id += "0"
}
res, _ := strconv.ParseInt(id, 2, 64)
res, _ := strconv.ParseInt(id, 2, 32)
return int(res)
}