From aa7cea4cf833401cec4307602a7ec3ec2c9a119f Mon Sep 17 00:00:00 2001 From: tsosunchia <59512455+tsosunchia@users.noreply.github.com> Date: Tue, 5 Sep 2023 21:50:23 +0800 Subject: [PATCH] =?UTF-8?q?dod=E4=B9=9F=E7=BA=B3=E5=85=A5=E8=80=83?= =?UTF-8?q?=E8=99=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- printer/realtime_printer.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/printer/realtime_printer.go b/printer/realtime_printer.go index 5378ae5..ff0e334 100644 --- a/printer/realtime_printer.go +++ b/printer/realtime_printer.go @@ -98,8 +98,9 @@ func RealtimePrinter(res *trace.Result, ttl int) { } if whoisFormat[0] != "" { - //如果以RFC开头那么为空 - if !strings.HasPrefix(whoisFormat[0], "RFC") { + //如果以RFC或DOD开头那么为空 + if !(strings.HasPrefix(whoisFormat[0], "RFC") || + strings.HasPrefix(whoisFormat[0], "DOD")) { whoisFormat[0] = "[" + whoisFormat[0] + "]" } else { whoisFormat[0] = ""