From 880a99adf8670f2cc75903c8c22efeae3cc4a665 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Tue, 25 Oct 2022 14:17:23 -0700 Subject: [PATCH] Minor edits to comments --- service/OneService.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/OneService.cpp b/service/OneService.cpp index d3ea2ab29..daba4d99b 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -1526,7 +1526,7 @@ public: settings["primaryPort"] = OSUtils::jsonInt(settings["primaryPort"],(uint64_t)_primaryPort) & 0xffff; settings["secondaryPort"] = OSUtils::jsonInt(settings["secondaryPort"],(uint64_t)_secondaryPort) & 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 boundAddrs(_binder.allBoundLocalInterfaceAddresses()); auto boundAddrArray = json::array(); for (int i = 0; i < boundAddrs.size(); i++) { @@ -1535,8 +1535,8 @@ public: boundAddrArray.push_back(ipBuf); } settings["listeningOn"] = boundAddrArray; - - std::vector surfaceAddrs = _node-> SurfaceAddresses(); + // Enumerate all external address/port pairs that are reported for this node + std::vector surfaceAddrs = _node->SurfaceAddresses(); auto surfaceAddrArray = json::array(); for (int i = 0; i < surfaceAddrs.size(); i++) { char ipBuf[64] = { 0 };