Skip to content

Commit

Permalink
dod也纳入考虑
Browse files Browse the repository at this point in the history
  • Loading branch information
tsosunchia committed Sep 5, 2023
1 parent 549dc54 commit aa7cea4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions printer/realtime_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] = ""
Expand Down

0 comments on commit aa7cea4

Please sign in to comment.