mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +02:00
Add timestamp field to network config requests.
This commit is contained in:
parent
4e95384ad6
commit
b644d2a893
1 changed files with 6 additions and 0 deletions
|
@ -308,6 +308,12 @@ void Network::requestConfiguration()
|
|||
Packet outp(controller(),RR->identity.address(),Packet::VERB_NETWORK_CONFIG_REQUEST);
|
||||
outp.append((uint64_t)_id);
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue