From c7c61b4ac045c056336a732927b37293bc898f95 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 22 Feb 2016 16:01:35 -0800 Subject: Fix checking of path address validity. --- node/Node.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'node/Node.cpp') diff --git a/node/Node.cpp b/node/Node.cpp index bdeca701..2e208a42 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -670,6 +670,9 @@ std::string Node::dataStoreGet(const char *name) bool Node::shouldUsePathForZeroTierTraffic(const InetAddress &localAddress,const InetAddress &remoteAddress) { + if (!Path::isAddressValidForPath(remoteAddress)) + return false; + { Mutex::Lock _l(_networks_m); for(std::vector< std::pair< uint64_t, SharedPtr > >::const_iterator i=_networks.begin();i!=_networks.end();++i) { -- cgit v1.2.3