mirror of
https://github.com/oneclickvirt/backtrace.git
synced 2026-11-24 23:39:41 +08:00
fix: 请求的缓存结果移动并复用
This commit is contained in:
1 parent
0c7727e3dc
commit
211c724509
3 files changed
+24
-27
No files matched your search
@@ -1,9 +1,19 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
const BackTraceVersion = "v0.0.5"
|
||||
|
||||
var EnableLoger = false
|
||||
|
||||
// IcmpTarget 定义ICMP目标的JSON结构
|
||||
type IcmpTarget struct {
|
||||
Province string `json:"province"`
|
||||
ISP string `json:"isp"`
|
||||
IPVersion string `json:"ip_version"`
|
||||
IPs string `json:"ips"` // IP列表,以逗号分隔
|
||||
}
|
||||
|
||||
var (
|
||||
IcmpTargets = "https://raw.githubusercontent.com/spiritLHLS/icmp_targets/refs/heads/main/nodes.json"
|
||||
CdnList = []string{
|
||||
@@ -62,4 +72,7 @@ var (
|
||||
"AS9808": "移动CMI [普通线路]",
|
||||
"AS58453": "移动CMI [普通线路]",
|
||||
}
|
||||
CachedIcmpData string
|
||||
CachedIcmpDataFetchTime time.Time
|
||||
ParsedIcmpTargets []IcmpTarget
|
||||
)
|
||||
Reference in new issue
Block a user