From 0b09addd17feae6b9d0cfda022acb78db8623cdf Mon Sep 17 00:00:00 2001 From: sjlleo Date: Wed, 8 Jun 2022 20:03:47 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E5=AE=9E=E6=97=B6=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index a48e857..8c5e869 100644 --- a/main.go +++ b/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 {