feat: 尝试直接捕捉输出内容,方便后续并发执行请求

This commit is contained in:
spiritlhl
2025-08-10 13:22:42 +00:00
parent 68822c1e5a
commit 35ee9a9db6
2 changed files with 42 additions and 10 deletions
+3
View File
@@ -49,6 +49,9 @@ func main() {
}
result := nt.TraceRoute(language, location, checkType)
for _, res := range result {
if strings.Contains(res, "- ICMP") {
fmt.Print(res)
}
fmt.Println(res)
}
}