mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-10 20:10:24 +08:00
优化代码
This commit is contained in:
@@ -192,6 +192,10 @@ Loop:
|
||||
if iplibrary.SharedLibrary != nil {
|
||||
result, err := iplibrary.SharedLibrary.Lookup(ip)
|
||||
if err == nil && result != nil {
|
||||
if len(result.Country) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
var key = serverId + "@" + result.Country + "@" + result.Province + "@" + result.City
|
||||
stat, ok := this.cityMap[key]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user