mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 13:07:55 +00:00
Remove some left over debug code, and fix attempt to send to self if we are an active bridge.
This commit is contained in:
parent
17bfd4d55e
commit
708aac1ea7
@ -211,10 +211,12 @@ void Multicaster::send(
|
|||||||
unsigned int count = 0;
|
unsigned int count = 0;
|
||||||
|
|
||||||
for(std::vector<Address>::const_iterator ast(alwaysSendTo.begin());ast!=alwaysSendTo.end();++ast) {
|
for(std::vector<Address>::const_iterator ast(alwaysSendTo.begin());ast!=alwaysSendTo.end();++ast) {
|
||||||
|
if (*ast != RR->identity.address()) {
|
||||||
out.sendOnly(RR,*ast);
|
out.sendOnly(RR,*ast);
|
||||||
if (++count >= limit)
|
if (++count >= limit)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
unsigned long idx = 0;
|
unsigned long idx = 0;
|
||||||
while ((count < limit)&&(idx < gs.members.size())) {
|
while ((count < limit)&&(idx < gs.members.size())) {
|
||||||
@ -264,10 +266,12 @@ void Multicaster::send(
|
|||||||
unsigned int count = 0;
|
unsigned int count = 0;
|
||||||
|
|
||||||
for(std::vector<Address>::const_iterator ast(alwaysSendTo.begin());ast!=alwaysSendTo.end();++ast) {
|
for(std::vector<Address>::const_iterator ast(alwaysSendTo.begin());ast!=alwaysSendTo.end();++ast) {
|
||||||
|
if (*ast != RR->identity.address()) {
|
||||||
out.sendAndLog(RR,*ast);
|
out.sendAndLog(RR,*ast);
|
||||||
if (++count >= limit)
|
if (++count >= limit)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
unsigned long idx = 0;
|
unsigned long idx = 0;
|
||||||
while ((count < limit)&&(idx < gs.members.size())) {
|
while ((count < limit)&&(idx < gs.members.size())) {
|
||||||
|
@ -226,7 +226,7 @@ void Peer::doPingAndKeepalive(const RuntimeEnvironment *RR,uint64_t now)
|
|||||||
|
|
||||||
void Peer::pushDirectPaths(const RuntimeEnvironment *RR,RemotePath *path,uint64_t now,bool force)
|
void Peer::pushDirectPaths(const RuntimeEnvironment *RR,RemotePath *path,uint64_t now,bool force)
|
||||||
{
|
{
|
||||||
if ((true)||(((now - _lastDirectPathPush) >= ZT_DIRECT_PATH_PUSH_INTERVAL)||(force))) {
|
if (((now - _lastDirectPathPush) >= ZT_DIRECT_PATH_PUSH_INTERVAL)||(force)) {
|
||||||
_lastDirectPathPush = now;
|
_lastDirectPathPush = now;
|
||||||
|
|
||||||
std::vector<Path> dps(RR->node->directPaths());
|
std::vector<Path> dps(RR->node->directPaths());
|
||||||
|
Loading…
Reference in New Issue
Block a user