mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-22 06:17:48 +00:00
Add timestamp field to network config requests.
This commit is contained in:
parent
4e95384ad6
commit
b644d2a893
@ -308,6 +308,12 @@ void Network::requestConfiguration()
|
|||||||
Packet outp(controller(),RR->identity.address(),Packet::VERB_NETWORK_CONFIG_REQUEST);
|
Packet outp(controller(),RR->identity.address(),Packet::VERB_NETWORK_CONFIG_REQUEST);
|
||||||
outp.append((uint64_t)_id);
|
outp.append((uint64_t)_id);
|
||||||
outp.append((uint16_t)0); // no meta-data
|
outp.append((uint16_t)0); // no meta-data
|
||||||
|
{
|
||||||
|
Mutex::Lock _l(_lock);
|
||||||
|
if (_config)
|
||||||
|
outp.append((uint64_t)_config->timestamp());
|
||||||
|
else outp.append((uint64_t)0);
|
||||||
|
}
|
||||||
RR->sw->send(outp,true);
|
RR->sw->send(outp,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user