mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-22 22:33:58 -07:00
No use to update allowedEtherTypes when we'll throw it away
This commit is contained in:
parent
dd7821f712
commit
8cb5bbfcb2
1 changed files with 2 additions and 2 deletions
|
@ -389,9 +389,9 @@ NetworkController::ResultCode SqliteNetworkController::doNetworkConfigRequest(co
|
||||||
allowedEtherTypes.push_back(et);
|
allowedEtherTypes.push_back(et);
|
||||||
}
|
}
|
||||||
std::sort(allowedEtherTypes.begin(),allowedEtherTypes.end());
|
std::sort(allowedEtherTypes.begin(),allowedEtherTypes.end());
|
||||||
for(std::vector<int>::iterator end = std::unique(allowedEtherTypes.begin(),allowedEtherTypes.end()) ; end != allowedEtherTypes.end() ; allowedEtherTypes.pop_back());
|
std::vector<int>::iterator end = std::unique(allowedEtherTypes.begin(),allowedEtherTypes.end());
|
||||||
std::string allowedEtherTypesCsv;
|
std::string allowedEtherTypesCsv;
|
||||||
for(std::vector<int>::const_iterator i(allowedEtherTypes.begin());i!=allowedEtherTypes.end();++i) {
|
for(std::vector<int>::const_iterator i(allowedEtherTypes.begin());i!=end;++i) {
|
||||||
if (allowedEtherTypesCsv.length())
|
if (allowedEtherTypesCsv.length())
|
||||||
allowedEtherTypesCsv.push_back(',');
|
allowedEtherTypesCsv.push_back(',');
|
||||||
char tmp[16];
|
char tmp[16];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue