mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
resolve-host: also show mDNS as source of resolving
This commit is contained in:
@@ -64,10 +64,12 @@ static void print_source(uint64_t flags, usec_t rtt) {
|
||||
fputs("\n-- Information acquired via", stdout);
|
||||
|
||||
if (flags != 0)
|
||||
printf(" protocol%s%s%s",
|
||||
printf(" protocol%s%s%s%s%s",
|
||||
flags & SD_RESOLVED_DNS ? " DNS" :"",
|
||||
flags & SD_RESOLVED_LLMNR_IPV4 ? " LLMNR/IPv4" : "",
|
||||
flags & SD_RESOLVED_LLMNR_IPV6 ? " LLMNR/IPv6" : "");
|
||||
flags & SD_RESOLVED_LLMNR_IPV6 ? " LLMNR/IPv6" : "",
|
||||
flags & SD_RESOLVED_MDNS_IPV4 ? "mDNS/IPv4" : "",
|
||||
flags & SD_RESOLVED_MDNS_IPV6 ? "mDNS/IPv6" : "");
|
||||
|
||||
assert_se(format_timespan(rtt_str, sizeof(rtt_str), rtt, 100));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user