diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-07 14:06:40 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-07 14:06:40 -0800 |
| commit | cdc289fa9c5d7d19990c14946ede5f3642e235d2 (patch) | |
| tree | 03e5fe4e4f0ee71bf5f26e786cc2e33c3b5c72be /node/Membership.cpp | |
| parent | 672f17c6e9ae981a70c51fdd62882e4847c5b6ba (diff) | |
| download | infinitytier-cdc289fa9c5d7d19990c14946ede5f3642e235d2.tar.gz infinitytier-cdc289fa9c5d7d19990c14946ede5f3642e235d2.zip | |
Tags work.
Diffstat (limited to 'node/Membership.cpp')
| -rw-r--r-- | node/Membership.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/node/Membership.cpp b/node/Membership.cpp index 6307b85d..8c6dab64 100644 --- a/node/Membership.cpp +++ b/node/Membership.cpp @@ -83,11 +83,8 @@ void Membership::pushCredentials(const RuntimeEnvironment *RR,const uint64_t now outp.addSize(2); unsigned int thisPacketTagCount = 0; while ((tagPtr < sendTagCount)&&((outp.size() + sizeof(Tag) + 32) < ZT_PROTO_MAX_PACKET_LENGTH)) { - if ( (_localTags[tagPtr].id != nconf.tags[tagPtr].id()) || ((now - _localTags[tagPtr].lastPushed) >= ZT_CREDENTIAL_PUSH_EVERY) || (force) ) { - sendTags[tagPtr]->serialize(outp); - ++thisPacketTagCount; - } - ++tagPtr; + sendTags[tagPtr++]->serialize(outp); + ++thisPacketTagCount; } outp.setAt(tagCountAt,(uint16_t)thisPacketTagCount); |
