feat: refresh ASN prefixes with bounded Go loader

This commit is contained in:
spiritlhl committed 2026-07-21 00:42:30 +08:00
1 parent dd4fdcdaea
commit a32a1067d3
11 files changed
+632 -42

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ func safeTraceCall(fn func()) {
}
func BackTrace(enableIpv6 bool) string {
StartASNPrefixRefresh()
if model.CachedIcmpData == "" || model.ParsedIcmpTargets == nil || time.Since(model.CachedIcmpDataFetchTime) > time.Hour {
model.CachedIcmpData = getData(model.IcmpTargets)
model.CachedIcmpDataFetchTime = time.Now()