print the port data in DNS shell commands. (#32982)
diff --git a/src/lib/shell/commands/Dns.cpp b/src/lib/shell/commands/Dns.cpp
index 1495533..ff9edad 100644
--- a/src/lib/shell/commands/Dns.cpp
+++ b/src/lib/shell/commands/Dns.cpp
@@ -135,6 +135,10 @@
{
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: