fix: 修复目标地址

This commit is contained in:
spiritlhl 2025-04-13 03:47:38 +00:00
parent c550861ce5
commit d975fe6906
2 changed files with 4 additions and 2 deletions

View File

@ -73,7 +73,9 @@ func parseIcmpTargets(jsonData string) []model.IcmpTarget {
var targets []model.IcmpTarget
err := json.Unmarshal([]byte(jsonData), &targets)
if err != nil {
logError(fmt.Sprintf("解析ICMP目标失败: %s", err.Error()))
if model.EnableLoger {
Logger.Info(fmt.Sprintf("解析ICMP目标失败: %s", err.Error()))
}
return nil
}
return targets

View File

@ -15,7 +15,7 @@ type IcmpTarget struct {
}
var (
IcmpTargets = "https://raw.githubusercontent.com/spiritLHLS/icmp_targets/refs/heads/main/nodes.json"
IcmpTargets = "https://raw.githubusercontent.com/spiritLHLS/icmp_targets/main/nodes.json"
CdnList = []string{
"http://cdn1.spiritlhl.net/",
"http://cdn2.spiritlhl.net/",