v1.5.1 增强程序稳定性
This commit is contained in:
@@ -814,6 +814,9 @@ func (this *Rule) ipToInt64(ip net.IP) int64 {
|
||||
if len(ip) == 16 {
|
||||
return int64(binary.BigEndian.Uint32(ip[12:16]))
|
||||
}
|
||||
if len(ip) < 4 {
|
||||
return 0
|
||||
}
|
||||
return int64(binary.BigEndian.Uint32(ip))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user