mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
improve: 实时显示
This commit is contained in:
6
main.go
6
main.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user