mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-02 14:00:27 +08:00
修复IPv6访问可能导致进程异常退出的Bug
This commit is contained in:
@@ -165,7 +165,7 @@ Loop:
|
||||
ip := ipString[atIndex+1:]
|
||||
if iplibrary.SharedLibrary != nil {
|
||||
result, err := iplibrary.SharedLibrary.Lookup(ip)
|
||||
if err == nil {
|
||||
if err == nil && result != nil {
|
||||
this.cityMap[serverId+"@"+result.Country+"@"+result.Province+"@"+result.City] ++
|
||||
|
||||
if len(result.ISP) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user