mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
.
This commit is contained in:
parent
d7e7ad4f88
commit
15ed7423ac
1 changed files with 2 additions and 0 deletions
|
@ -352,6 +352,7 @@ void SoftwareUpdater::handleSoftwareUpdateUserMessage(uint64_t origin,const void
|
|||
memcpy(_latestBinHashPrefix.data,hash.data(),16);
|
||||
_latestBinLength = len;
|
||||
_latestBinValid = false;
|
||||
printf("<< LATEST\n%s\n",OSUtils::jsonDump(req).c_str());
|
||||
}
|
||||
|
||||
Buffer<128> gd;
|
||||
|
@ -369,6 +370,7 @@ void SoftwareUpdater::handleSoftwareUpdateUserMessage(uint64_t origin,const void
|
|||
|
||||
case VERB_GET_DATA:
|
||||
if ((len >= 21)&&(_dist.size() > 0)) {
|
||||
printf("<< DATA from %.10llx\n",origin);
|
||||
std::map< Array<uint8_t,16>,_D >::iterator d(_dist.find(Array<uint8_t,16>(reinterpret_cast<const uint8_t *>(data) + 1)));
|
||||
if (d != _dist.end()) {
|
||||
unsigned long idx = (unsigned long)*(reinterpret_cast<const uint8_t *>(data) + 17) << 24;
|
||||
|
|
Loading…
Add table
Reference in a new issue