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 };