mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 04:57:53 +00:00
Minor edits to comments
This commit is contained in:
parent
3b11915eab
commit
880a99adf8
@ -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 };
|
||||||
|
Loading…
Reference in New Issue
Block a user