mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-17 14:48:17 +00:00
Return self in GATHER requests if self is a member of multicast group, and reinstate legacy support.
This commit is contained in:
@ -163,6 +163,16 @@ public:
|
||||
return _myMulticastGroups;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mg Multicast group
|
||||
* @return True if this network endpoint / peer is a member
|
||||
*/
|
||||
bool subscribedToMulticastGroup(const MulticastGroup &mg) const
|
||||
{
|
||||
Mutex::Lock _l(_lock);
|
||||
return (_myMulticastGroups.find(mg) != _myMulticastGroups.end());
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply a NetworkConfig to this network
|
||||
*
|
||||
|
Reference in New Issue
Block a user