dod也纳入考虑

This commit is contained in:
tsosunchia
2023-09-05 21:50:23 +08:00
parent 549dc549dd
commit aa7cea4cf8

View File

@@ -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] = ""