Skip to content

Commit ef44226

Browse files
authored
print the port data in DNS shell commands. (#32982)
1 parent 3a4f4e8 commit ef44226

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/shell/commands/Dns.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ class DnsShellResolverDelegate : public Dnssd::DiscoverNodeDelegate, public Addr
135135
{
136136
streamer_printf(streamer_get(), " %s\r\n", nodeData.resolutionData.ipAddress[i].ToString(ipAddressBuf));
137137
}
138+
if (nodeData.resolutionData.port > 0)
139+
{
140+
streamer_printf(streamer_get(), " Port: %u\r\n", nodeData.resolutionData.port);
141+
}
138142
}
139143

140144
private:

0 commit comments

Comments
 (0)