diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-28 11:16:43 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-28 11:16:43 -0700 |
| commit | dda376c9eb0800b824f423db30399d93e89cb162 (patch) | |
| tree | d2745b65493214c65d08b642115acc2dabd2e3b1 /node/Peer.cpp | |
| parent | 40d5c79b62e7ca7f6da7697e720fb0eb49a26125 (diff) | |
| download | infinitytier-dda376c9eb0800b824f423db30399d93e89cb162.tar.gz infinitytier-dda376c9eb0800b824f423db30399d93e89cb162.zip | |
Nuke some abandoned code.
Diffstat (limited to 'node/Peer.cpp')
| -rw-r--r-- | node/Peer.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index ab3d61a6..2bfd421f 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -231,22 +231,6 @@ void Peer::pushDirectPaths(const RuntimeEnvironment *RR,RemotePath *path,uint64_ std::vector<Path> dps(RR->node->directPaths()); - // Push peer-reported surface -- tried this and it didn't help much with difficult NATs so commenting out. - /* - std::vector< std::pair<Address,InetAddress> > surface(RR->sa->getReportedSurface()); - for(std::vector< std::pair<Address,InetAddress> >::const_iterator s(surface.begin());s!=surface.end();++s) { - bool alreadyHave = false; - for(std::vector<Path>::const_iterator p(dps.begin());p!=dps.end();++p) { - if (p->address() == s->second) { - alreadyHave = true; - break; - } - } - if (!alreadyHave) - dps.push_back(Path(s->second,0,Path::TRUST_NORMAL)); - } - */ - #ifdef ZT_TRACE { std::string ps; |
