mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-12-07 19:10:30 -08:00
Cleanup, define specialist for network specific relays, remove some dead code.
This commit is contained in:
parent
5fb8d2aa37
commit
697011df7b
3 changed files with 61 additions and 83 deletions
|
|
@ -300,16 +300,6 @@ void Multicaster::send(void* tPtr, int64_t now, const SharedPtr<Network>& networ
|
|||
}
|
||||
}
|
||||
|
||||
std::vector<Address> anchors(network->config().anchors());
|
||||
for (std::vector<Address>::const_iterator a(anchors.begin()); a != anchors.end(); ++a) {
|
||||
if (*a != RR->identity.address()) {
|
||||
explicitGatherPeers[numExplicitGatherPeers++] = *a;
|
||||
if (numExplicitGatherPeers == 16) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (unsigned int k = 0; k < numExplicitGatherPeers; ++k) {
|
||||
const CertificateOfMembership* com = (network) ? ((network->config().com) ? &(network->config().com) : (const CertificateOfMembership*)0) : (const CertificateOfMembership*)0;
|
||||
Packet outp(explicitGatherPeers[k], RR->identity.address(), Packet::VERB_MULTICAST_GATHER);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue