diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-21 13:46:55 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-21 13:46:55 -0700 |
commit | 33ad3deaee06df288731064aa0663cb2806ebea0 (patch) | |
tree | a4ce002d3928dc3edb8a266149ad152533a89c5a /node/Topology.cpp | |
parent | ba3f04deedb3a09e8683b2507b7c2176e87e3766 (diff) | |
download | infinitytier-33ad3deaee06df288731064aa0663cb2806ebea0.tar.gz infinitytier-33ad3deaee06df288731064aa0663cb2806ebea0.zip |
Builds with new Path code.
Diffstat (limited to 'node/Topology.cpp')
-rw-r--r-- | node/Topology.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/node/Topology.cpp b/node/Topology.cpp index b4bbfadb..d3667654 100644 --- a/node/Topology.cpp +++ b/node/Topology.cpp @@ -64,8 +64,9 @@ void Topology::setSupernodes(const std::map< Identity,std::vector<InetAddress> > SharedPtr<Peer> p(getPeer(i->first.address())); if (!p) p = addPeer(SharedPtr<Peer>(new Peer(_r->identity,i->first))); - for(std::vector<InetAddress>::const_iterator j(i->second.begin());j!=i->second.end();++j) - p->setPathAddress(*j,true); + for(std::vector<InetAddress>::const_iterator j(i->second.begin());j!=i->second.end();++j) { + p->addPath(Path(*j,false,true)); + } p->setLastUsed(now); _supernodePeers.push_back(p); } |