Skip to content

Commit

Permalink
print the port data in DNS shell commands. (project-chip#32982)
Browse files Browse the repository at this point in the history
  • Loading branch information
DejinChen authored Apr 15, 2024
1 parent 3a4f4e8 commit ef44226
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/shell/commands/Dns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ef44226

Please sign in to comment.