diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-05-23 15:13:34 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-05-23 15:13:34 -0700 |
| commit | 31ddc49da2e8c8aa9345616af28c9643968a8393 (patch) | |
| tree | e5b7e6b55ccd2e8ec0d98fc65c9c490a511e428e /node/WindowsEthernetTap.cpp | |
| parent | 317995b921c96ce62ce17adb90b94e84c6e5e9d3 (diff) | |
| download | infinitytier-31ddc49da2e8c8aa9345616af28c9643968a8393.tar.gz infinitytier-31ddc49da2e8c8aa9345616af28c9643968a8393.zip | |
GitHub issue #67
Diffstat (limited to 'node/WindowsEthernetTap.cpp')
| -rw-r--r-- | node/WindowsEthernetTap.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/node/WindowsEthernetTap.cpp b/node/WindowsEthernetTap.cpp index ea7f7510..2e8de8c1 100644 --- a/node/WindowsEthernetTap.cpp +++ b/node/WindowsEthernetTap.cpp @@ -616,8 +616,6 @@ bool WindowsEthernetTap::updateMulticastGroups(std::set<MulticastGroup> &groups) } } - newGroups.insert(_blindWildcardMulticastGroup); // always join this - bool changed = false; for(std::set<MulticastGroup>::iterator mg(newGroups.begin());mg!=newGroups.end();++mg) { @@ -627,7 +625,7 @@ bool WindowsEthernetTap::updateMulticastGroups(std::set<MulticastGroup> &groups) } } for(std::set<MulticastGroup>::iterator mg(groups.begin());mg!=groups.end();) { - if (!newGroups.count(*mg)) { + if ((!newGroups.count(*mg))&&(*mg != _blindWildcardMulticastGroup)) { groups.erase(mg++); changed = true; } else ++mg; |
