mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-07 18:50:27 +08:00
IP找不到不再提示错误
This commit is contained in:
@@ -99,7 +99,7 @@ func (this *IP2Region) MemorySearch(ipStr string) (ipInfo *IpInfo, err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if dataPtr == 0 {
|
if dataPtr == 0 {
|
||||||
return nil, errors.New("not found")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
dataLen := (dataPtr >> 24) & 0xFF
|
dataLen := (dataPtr >> 24) & 0xFF
|
||||||
|
|||||||
Reference in New Issue
Block a user