Skip to content

Commit

Permalink
print the port in resolution data
Browse files Browse the repository at this point in the history
  • Loading branch information
DejinChen committed Apr 15, 2024
1 parent 3cb8382 commit 688ff4d
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 688ff4d

Please sign in to comment.