Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
sjlleo committed Jan 24, 2023
1 parent 99ad564 commit 95f8cef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions printer/realtime_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ func RealtimePrinter(res *trace.Result, ttl int) {
fallthrough
case res.Hops[ttl][i].Geo.Asnumber == "23764":
fallthrough
case res.Hops[ttl][i].Geo.Whois == "CMIN2-NET":
fallthrough
case strings.HasPrefix(res.Hops[ttl][i].Address.String(), "59.43."):
fmt.Fprintf(color.Output, " %s", color.New(color.FgHiYellow, color.Bold).Sprintf("AS%-6s", res.Hops[ttl][i].Geo.Asnumber))
default:
Expand Down Expand Up @@ -110,6 +112,8 @@ func RealtimePrinter(res *trace.Result, ttl int) {
fallthrough
case whoisFormat[0] == "[CUG-BACKBONE]":
fallthrough
case whoisFormat[0] == "[CMIN2-NET]":
fallthrough
case strings.HasPrefix(res.Hops[ttl][i].Address.String(), "59.43."):
fmt.Fprintf(color.Output, " %s", color.New(color.FgHiYellow, color.Bold).Sprintf("%-16s", whoisFormat[0]))
default:
Expand Down

0 comments on commit 95f8cef

Please sign in to comment.