Accept supernode dictionaries in Topology, also fix (unused) field name in one of these.
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
namespace ZeroTier {
|
||||
|
||||
class RuntimeEnvironment;
|
||||
class Dictionary;
|
||||
|
||||
/**
|
||||
* Database of network topology
|
||||
@@ -65,6 +66,16 @@ public:
|
||||
*/
|
||||
void setSupernodes(const std::map< Identity,std::vector< std::pair<InetAddress,bool> > > &sn);
|
||||
|
||||
/**
|
||||
* Set up supernodes for this network
|
||||
*
|
||||
* This performs no signature verification of any kind. The caller must
|
||||
* check the signature of the root topology dictionary first.
|
||||
*
|
||||
* @param sn Supernodes dictionary from root-topology
|
||||
*/
|
||||
void setSupernodes(const Dictionary &sn);
|
||||
|
||||
/**
|
||||
* Add a peer to database
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user