修复错误
This commit is contained in:
7
main.go
7
main.go
@@ -182,9 +182,10 @@ func runMainProcess() { // 主进程逻辑
|
||||
} else {
|
||||
log.Printf("\033[31m%s %s\033[0m\n", e1.Value.(net.IP).String(), position) // 打印地域
|
||||
|
||||
AddIPSet(IPSET_NAME, e1.Value.(net.IP).String()) // 添加 Ip 到 ipset 集合
|
||||
|
||||
IpList.Remove(e1) // 移除第一个元素
|
||||
if !strings.Contains(position, "中国") && !strings.Contains(position, "内网") {
|
||||
AddIPSet(IPSET_NAME, e1.Value.(net.IP).String()) // 添加 Ip 到 ipset 集合
|
||||
IpList.Remove(e1) // 移除第一个元素
|
||||
}
|
||||
}
|
||||
} else { // 这时是国内地址
|
||||
IpList.Remove(e1)
|
||||
|
||||
Reference in New Issue
Block a user