summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-19 10:23:25 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-19 10:23:25 -0700
commit7bae95836c8824a76e0299df776a708eb3e58576 (patch)
tree67fd37bb38b209fffcc7e480004dbd298a507d10 /service
parent07f84a99b4458b3ddf5c14b9ce9b7c1dc5e2763e (diff)
downloadinfinitytier-7bae95836c8824a76e0299df776a708eb3e58576.tar.gz
infinitytier-7bae95836c8824a76e0299df776a708eb3e58576.zip
Root server terminology cleanup, and tighten up a security check by checking full identity of peers instead of just address.
Diffstat (limited to 'service')
-rw-r--r--service/ControlPlane.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/ControlPlane.cpp b/service/ControlPlane.cpp
index e42c9ef8..01582586 100644
--- a/service/ControlPlane.cpp
+++ b/service/ControlPlane.cpp
@@ -211,9 +211,9 @@ static void _jsonAppend(unsigned int depth,std::string &buf,const ZT1_Peer *peer
const char *prole = "";
switch(peer->role) {
- case ZT1_PEER_ROLE_LEAF: prole = "LEAF"; break;
- case ZT1_PEER_ROLE_HUB: prole = "HUB"; break;
- case ZT1_PEER_ROLE_ROOTSERVER: prole = "ROOT"; break;
+ case ZT1_PEER_ROLE_LEAF: prole = "LEAF"; break;
+ case ZT1_PEER_ROLE_RELAY: prole = "RELAY"; break;
+ case ZT1_PEER_ROLE_ROOT: prole = "ROOT"; break;
}
Utils::snprintf(json,sizeof(json),