improve: 实时显示

This commit is contained in:
sjlleo
2022-06-08 20:03:47 +08:00
parent 99dffc959c
commit 0b09addd17

View File

@@ -115,7 +115,7 @@ func main() {
Timeout: 1 * time.Second,
}
if m == trace.ICMPTrace && !*tablePrint {
if !*tablePrint {
conf.RealtimePrinter = printer.RealtimePrinter
}
@@ -125,10 +125,8 @@ func main() {
log.Fatalln(err)
}
if (*tcpSYNFlag && *udpPackageFlag) || *tablePrint {
if *tablePrint {
printer.TracerouteTablePrinter(res)
} else if *tcpSYNFlag || *udpPackageFlag {
printer.TraceroutePrinter(res)
}
if *routePath {