diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-07-12 08:29:50 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-07-12 08:29:50 -0700 |
| commit | 765082fdb68d8847cbd53cb442cbed5006b28d5f (patch) | |
| tree | 88a6de909ef66218422ead9e69ad0ef7dc7a53e4 /node/Node.cpp | |
| parent | aff62e9e10c164c005f7b4f9bc78b50c2c6fcca1 (diff) | |
| download | infinitytier-765082fdb68d8847cbd53cb442cbed5006b28d5f.tar.gz infinitytier-765082fdb68d8847cbd53cb442cbed5006b28d5f.zip | |
Trusted path support, and version bump to 1.1.9
Diffstat (limited to 'node/Node.cpp')
| -rw-r--r-- | node/Node.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/node/Node.cpp b/node/Node.cpp index bedbba94..058df32d 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -745,6 +745,11 @@ void Node::postCircuitTestReport(const ZT_CircuitTestReport *report) (reinterpret_cast<void (*)(ZT_Node *,ZT_CircuitTest *,const ZT_CircuitTestReport *)>((*i)->_internalPtr))(reinterpret_cast<ZT_Node *>(this),*i,report); } +void Node::setTrustedPaths(const struct sockaddr_storage *networks,const uint64_t *ids,unsigned int count) +{ + RR->topology->setTrustedPaths(reinterpret_cast<const InetAddress *>(networks),ids,count); +} + } // namespace ZeroTier /****************************************************************************/ @@ -1014,6 +1019,13 @@ void ZT_Node_clusterStatus(ZT_Node *node,ZT_ClusterStatus *cs) } catch ( ... ) {} } +void ZT_Node_setTrustedPaths(ZT_Node *node,const struct sockaddr_storage *networks,const uint64_t *ids,unsigned int count) +{ + try { + reinterpret_cast<ZeroTier::Node *>(node)->setTrustedPaths(networks,ids,count); + } catch ( ... ) {} +} + void ZT_Node_backgroundThreadMain(ZT_Node *node) { try { |
