diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-04 00:23:31 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-04 00:23:31 -0800 |
| commit | 31db768e4d4c2815d2be0493b2c76ea5f5edbffa (patch) | |
| tree | ae76b2153c5a6d58dd4b887c54626ee9e93b6601 /node/Switch.cpp | |
| parent | d9e4ba1280bc5aec5d4cc04c4c495ac9c923563d (diff) | |
| download | infinitytier-31db768e4d4c2815d2be0493b2c76ea5f5edbffa.tar.gz infinitytier-31db768e4d4c2815d2be0493b2c76ea5f5edbffa.zip | |
A bit of code cleanup.
Diffstat (limited to 'node/Switch.cpp')
| -rw-r--r-- | node/Switch.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp index 9fcd379f..a769faea 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -224,7 +224,7 @@ void Switch::onRemotePacket(const InetAddress &localAddr,const InetAddress &from #endif SharedPtr<Peer> relayTo = RR->topology->getPeer(destination); - if ((relayTo)&&((relayTo->sendDirect(packet.data(),packet.size(),now,false)))) { + if ((relayTo)&&(relayTo->sendDirect(packet.data(),packet.size(),now,false))) { if ((source != RR->identity.address())&&(_shouldUnite(now,source,destination))) { // don't send RENDEZVOUS for cluster frontplane relays const InetAddress *hintToSource = (InetAddress *)0; const InetAddress *hintToDest = (InetAddress *)0; @@ -245,7 +245,6 @@ void Switch::onRemotePacket(const InetAddress &localAddr,const InetAddress &from } if ((hintToSource)&&(hintToDest)) { - TRACE(">> RENDEZVOUS: %s(%s) <> %s(%s)",p1.toString().c_str(),p1a->toString().c_str(),p2.toString().c_str(),p2a->toString().c_str()); unsigned int alt = (unsigned int)RR->node->prng() & 1; // randomize which hint we send first for obscure NAT-t reasons const unsigned int completed = alt + 2; while (alt != completed) { |
