diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-22 16:01:35 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-22 16:01:35 -0800 |
| commit | c7c61b4ac045c056336a732927b37293bc898f95 (patch) | |
| tree | 2211db4fe15eca4c9548c5b603e6fafb7beca6c8 /node/Node.cpp | |
| parent | 92f24d1988451fb99b24e89ab52dfa6ecae7e65f (diff) | |
| download | infinitytier-c7c61b4ac045c056336a732927b37293bc898f95.tar.gz infinitytier-c7c61b4ac045c056336a732927b37293bc898f95.zip | |
Fix checking of path address validity.
Diffstat (limited to 'node/Node.cpp')
| -rw-r--r-- | node/Node.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<Network> > >::const_iterator i=_networks.begin();i!=_networks.end();++i) { |
