Minor edits to comments

This commit is contained in:
Joseph Henry 2022-10-25 14:17:23 -07:00
parent 3b11915eab
commit 880a99adf8
No known key found for this signature in database
GPG Key ID: C45B33FF5EBC9344

View File

@ -1526,7 +1526,7 @@ public:
settings["primaryPort"] = OSUtils::jsonInt(settings["primaryPort"],(uint64_t)_primaryPort) & 0xffff; settings["primaryPort"] = OSUtils::jsonInt(settings["primaryPort"],(uint64_t)_primaryPort) & 0xffff;
settings["secondaryPort"] = OSUtils::jsonInt(settings["secondaryPort"],(uint64_t)_secondaryPort) & 0xffff; settings["secondaryPort"] = OSUtils::jsonInt(settings["secondaryPort"],(uint64_t)_secondaryPort) & 0xffff;
settings["tertiaryPort"] = OSUtils::jsonInt(settings["tertiaryPort"],(uint64_t)_tertiaryPort) & 0xffff; settings["tertiaryPort"] = OSUtils::jsonInt(settings["tertiaryPort"],(uint64_t)_tertiaryPort) & 0xffff;
// Enumerate all external listening address/port pairs // Enumerate all local address/port pairs that this node is listening on
std::vector<InetAddress> boundAddrs(_binder.allBoundLocalInterfaceAddresses()); std::vector<InetAddress> boundAddrs(_binder.allBoundLocalInterfaceAddresses());
auto boundAddrArray = json::array(); auto boundAddrArray = json::array();
for (int i = 0; i < boundAddrs.size(); i++) { for (int i = 0; i < boundAddrs.size(); i++) {
@ -1535,8 +1535,8 @@ public:
boundAddrArray.push_back(ipBuf); boundAddrArray.push_back(ipBuf);
} }
settings["listeningOn"] = boundAddrArray; settings["listeningOn"] = boundAddrArray;
// Enumerate all external address/port pairs that are reported for this node
std::vector<InetAddress> surfaceAddrs = _node-> SurfaceAddresses(); std::vector<InetAddress> surfaceAddrs = _node->SurfaceAddresses();
auto surfaceAddrArray = json::array(); auto surfaceAddrArray = json::array();
for (int i = 0; i < surfaceAddrs.size(); i++) { for (int i = 0; i < surfaceAddrs.size(); i++) {
char ipBuf[64] = { 0 }; char ipBuf[64] = { 0 };