mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-23 18:50:17 +00:00
.
This commit is contained in:
parent
d7e7ad4f88
commit
15ed7423ac
@ -352,6 +352,7 @@ void SoftwareUpdater::handleSoftwareUpdateUserMessage(uint64_t origin,const void
|
|||||||
memcpy(_latestBinHashPrefix.data,hash.data(),16);
|
memcpy(_latestBinHashPrefix.data,hash.data(),16);
|
||||||
_latestBinLength = len;
|
_latestBinLength = len;
|
||||||
_latestBinValid = false;
|
_latestBinValid = false;
|
||||||
|
printf("<< LATEST\n%s\n",OSUtils::jsonDump(req).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
Buffer<128> gd;
|
Buffer<128> gd;
|
||||||
@ -369,6 +370,7 @@ void SoftwareUpdater::handleSoftwareUpdateUserMessage(uint64_t origin,const void
|
|||||||
|
|
||||||
case VERB_GET_DATA:
|
case VERB_GET_DATA:
|
||||||
if ((len >= 21)&&(_dist.size() > 0)) {
|
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)));
|
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()) {
|
if (d != _dist.end()) {
|
||||||
unsigned long idx = (unsigned long)*(reinterpret_cast<const uint8_t *>(data) + 17) << 24;
|
unsigned long idx = (unsigned long)*(reinterpret_cast<const uint8_t *>(data) + 17) << 24;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user