mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-30 16:13:55 +00:00
Indentation
This commit is contained in:
parent
d6a1868d0a
commit
c589bc4c57
@ -99,7 +99,7 @@ void Switch::onRemotePacket(const InetAddress &localAddr,const InetAddress &from
|
|||||||
// Handle fragment ----------------------------------------------------
|
// Handle fragment ----------------------------------------------------
|
||||||
|
|
||||||
Packet::Fragment fragment(data,len);
|
Packet::Fragment fragment(data,len);
|
||||||
Address destination(fragment.destination());
|
const Address destination(fragment.destination());
|
||||||
|
|
||||||
if (destination != RR->identity.address()) {
|
if (destination != RR->identity.address()) {
|
||||||
// Fragment is not for us, so try to relay it
|
// 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.
|
// It wouldn't hurt anything, just redundant and unnecessary.
|
||||||
SharedPtr<Peer> relayTo = RR->topology->getPeer(destination);
|
SharedPtr<Peer> relayTo = RR->topology->getPeer(destination);
|
||||||
if ((!relayTo)||(!relayTo->send(fragment.data(),fragment.size(),now))) {
|
if ((!relayTo)||(!relayTo->send(fragment.data(),fragment.size(),now))) {
|
||||||
#ifdef ZT_ENABLE_CLUSTER
|
#ifdef ZT_ENABLE_CLUSTER
|
||||||
if (RR->cluster) {
|
if (RR->cluster) {
|
||||||
RR->cluster->sendViaCluster(Address(),destination,fragment.data(),fragment.size(),false);
|
RR->cluster->sendViaCluster(Address(),destination,fragment.data(),fragment.size(),false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Don't know peer or no direct path -- so relay via root server
|
// Don't know peer or no direct path -- so relay via root server
|
||||||
relayTo = RR->topology->getBestRoot();
|
relayTo = RR->topology->getBestRoot();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user