mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user