summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-12-05 16:09:42 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-12-05 16:09:42 -0800
commit244f37179cb20b1ebec420da5b315ecf8ac0db40 (patch)
tree034b5e3ed4ca2b30da4b627b12ffd7aeaefadb5f /node/Node.cpp
parent4b3a47849d2c0d9d473602670318b54aaf65e056 (diff)
downloadinfinitytier-244f37179cb20b1ebec420da5b315ecf8ac0db40.tar.gz
infinitytier-244f37179cb20b1ebec420da5b315ecf8ac0db40.zip
Minor security: lock roots to only be reachable via World IPs.
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index 11f76365..ed60817f 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -633,6 +633,9 @@ bool Node::shouldUsePathForZeroTierTraffic(const Address &ztaddr,const InetAddre
if (!Path::isAddressValidForPath(remoteAddress))
return false;
+ if (RR->topology->isProhibitedEndpoint(ztaddr,remoteAddress))
+ return false;
+
{
Mutex::Lock _l(_networks_m);
for(std::vector< std::pair< uint64_t, SharedPtr<Network> > >::const_iterator i=_networks.begin();i!=_networks.end();++i) {