From ef4422690383a3b6fdf3542a2cba82f896fe55fa Mon Sep 17 00:00:00 2001 From: cdj <45139296+DejinChen@users.noreply.github.com> Date: Mon, 15 Apr 2024 22:52:21 +0800 Subject: [PATCH] print the port data in DNS shell commands. (#32982) --- src/lib/shell/commands/Dns.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/shell/commands/Dns.cpp b/src/lib/shell/commands/Dns.cpp index 14955335daaad0..ff9edad52445a5 100644 --- a/src/lib/shell/commands/Dns.cpp +++ b/src/lib/shell/commands/Dns.cpp @@ -135,6 +135,10 @@ class DnsShellResolverDelegate : public Dnssd::DiscoverNodeDelegate, public Addr { streamer_printf(streamer_get(), " %s\r\n", nodeData.resolutionData.ipAddress[i].ToString(ipAddressBuf)); } + if (nodeData.resolutionData.port > 0) + { + streamer_printf(streamer_get(), " Port: %u\r\n", nodeData.resolutionData.port); + } } private: