mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Add a netconf-service version field to netconf.
This commit is contained in:
parent
f9d31605b8
commit
83fc684b20
2 changed files with 5 additions and 0 deletions
|
@ -69,6 +69,8 @@
|
|||
|
||||
#include <mysql++/mysql++.h>
|
||||
|
||||
#include "../version.h"
|
||||
|
||||
#include "../node/Constants.hpp"
|
||||
#include "../node/Dictionary.hpp"
|
||||
#include "../node/Identity.hpp"
|
||||
|
@ -446,6 +448,8 @@ int main(int argc,char **argv)
|
|||
|
||||
// Assemble response dictionary to send to peer
|
||||
Dictionary netconf;
|
||||
sprintf(buf,"%d.%d.%d",ZEROTIER_ONE_VERSION_MAJOR,ZEROTIER_ONE_VERSION_MINOR,ZEROTIER_ONE_VERSION_REVISION);
|
||||
netconf[ZT_NETWORKCONFIG_DICT_KEY_NETCONF_SERVICE_VERSION] = buf;
|
||||
sprintf(buf,"%.16llx",(unsigned long long)nwid);
|
||||
netconf[ZT_NETWORKCONFIG_DICT_KEY_NETWORK_ID] = buf;
|
||||
netconf[ZT_NETWORKCONFIG_DICT_KEY_ISSUED_TO] = peerIdentity.address().toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue