mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Add search domain info to resolver debug info
This commit is contained in:
parent
80bfdcf299
commit
604e5e8cde
1 changed files with 7 additions and 5 deletions
|
@ -169,12 +169,14 @@ func AddToDebugInfo(di *debug.Info) {
|
|||
}
|
||||
|
||||
// Add section.
|
||||
if resolver.Info.Name != "" {
|
||||
content = append(content, resolver.Info.Name)
|
||||
} else {
|
||||
content = append(content, resolver.Info.IP.String())
|
||||
}
|
||||
content = append(content, resolver.Info.DescriptiveName())
|
||||
content = append(content, fmt.Sprintf(" %s", resolver.Info.ID()))
|
||||
if resolver.SearchOnly {
|
||||
content = append(content, " Used for search domains only!")
|
||||
}
|
||||
if len(resolver.Search) > 0 {
|
||||
content = append(content, fmt.Sprintf(" Search Domains: %v", strings.Join(resolver.Search, ", ")))
|
||||
}
|
||||
content = append(content, fmt.Sprintf(" Failing: %v", resolver.Conn.IsFailing()))
|
||||
|
||||
// Add a empty line for all but the last entry.
|
||||
|
|
Loading…
Add table
Reference in a new issue