This commit is contained in:
spiritlhl 2024-05-02 04:39:22 +00:00
parent e1bd13a6ff
commit f07427bf03
2 changed files with 5 additions and 4 deletions

View File

@ -83,12 +83,13 @@ func trace(ch chan Result, i int, cmin2 []string) {
hasAS4809 = true hasAS4809 = true
} }
} }
// 判断是否包含 AS4134 和 AS4809
if hasAS4134 && hasAS4809 { if hasAS4134 && hasAS4809 {
// 同时包含 AS4134 和 AS4809 属于 CN2GT // 同时包含 AS4134 和 AS4809 属于 CN2GT
asns = append(asns, "AS4809b") asns = append([]string{"AS4809b"}, asns...)
} else if hasAS4809 { } else if hasAS4809 {
// 仅包含 AS4809 属于 CN2GIA // 仅包含 AS4809 属于 CN2GIA
asns = append(asns, "AS4809a") asns = append([]string{"AS4809a"}, asns...)
} }
tempText += fmt.Sprintf("%-15s ", ips[i]) tempText += fmt.Sprintf("%-15s ", ips[i])
for _, asn := range asns { for _, asn := range asns {

View File

@ -13,6 +13,6 @@ func main() {
}() }()
fmt.Println(Green("项目地址:"), Yellow("https://github.com/oneclickvirt/backtrace")) fmt.Println(Green("项目地址:"), Yellow("https://github.com/oneclickvirt/backtrace"))
backtrace.BackTrace() backtrace.BackTrace()
fmt.Println(Purple("同一目标地址显示多个线路时可能追踪IP地址已越过汇聚层此时除去第一个线路信息后续信息可能无效")) fmt.Println(Yellow("准确线路自行查看详细路由,本测试结果仅作参考"))
fmt.Println(Purple("准确线路请查看详细的路由自行判断")) fmt.Println(Yellow("同一目标地址多个线路时,可能检测已越过汇聚层,除了第一个线路外,后续信息可能无效"))
} }