mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-20 21:43:08 +00:00
Do not send to origin in second buffered multicast path.
This commit is contained in:
parent
d3d58ba8a7
commit
939ab43ceb
@ -345,6 +345,9 @@ void Multicaster::send(
|
|||||||
data,
|
data,
|
||||||
len);
|
len);
|
||||||
|
|
||||||
|
if (origin)
|
||||||
|
out.logAsSent(origin);
|
||||||
|
|
||||||
unsigned int count = 0;
|
unsigned int count = 0;
|
||||||
|
|
||||||
for(unsigned int i=0;i<activeBridgeCount;++i) {
|
for(unsigned int i=0;i<activeBridgeCount;++i) {
|
||||||
|
@ -125,6 +125,16 @@ public:
|
|||||||
sendOnly(RR,tPtr,toAddr);
|
sendOnly(RR,tPtr,toAddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Log an address as having been used so we will not send there in the future
|
||||||
|
*
|
||||||
|
* @param toAddr Address to log as sent
|
||||||
|
*/
|
||||||
|
inline void logAsSent(const Address &toAddr)
|
||||||
|
{
|
||||||
|
_alreadySentTo.push_back(toAddr);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to send this to a given peer if it hasn't been sent to them already
|
* Try to send this to a given peer if it hasn't been sent to them already
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user