diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-03-18 14:32:48 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-03-18 14:32:48 -0700 |
commit | c589bc4c5733886425e4167b4b50d6f4b244c138 (patch) | |
tree | 8ef013553cf06ac42c15b032101ac288af9552af /node | |
parent | d6a1868d0a9b1d65417b87a20a4e234903d290f1 (diff) | |
download | infinitytier-c589bc4c5733886425e4167b4b50d6f4b244c138.tar.gz infinitytier-c589bc4c5733886425e4167b4b50d6f4b244c138.zip |
Indentation
Diffstat (limited to 'node')
-rw-r--r-- | node/Switch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp index 181bbf22..6aff493b 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -99,7 +99,7 @@ void Switch::onRemotePacket(const InetAddress &localAddr,const InetAddress &from // Handle fragment ---------------------------------------------------- Packet::Fragment fragment(data,len); - Address destination(fragment.destination()); + const Address destination(fragment.destination()); if (destination != RR->identity.address()) { // Fragment is not for us, so try to relay it @@ -110,12 +110,12 @@ void Switch::onRemotePacket(const InetAddress &localAddr,const InetAddress &from // It wouldn't hurt anything, just redundant and unnecessary. SharedPtr<Peer> relayTo = RR->topology->getPeer(destination); if ((!relayTo)||(!relayTo->send(fragment.data(),fragment.size(),now))) { - #ifdef ZT_ENABLE_CLUSTER +#ifdef ZT_ENABLE_CLUSTER if (RR->cluster) { RR->cluster->sendViaCluster(Address(),destination,fragment.data(),fragment.size(),false); return; } - #endif +#endif // Don't know peer or no direct path -- so relay via root server relayTo = RR->topology->getBestRoot(); |