mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
Don't bother signing if we are not using the legacy netconf.
This commit is contained in:
parent
2885aea65c
commit
683254a0db
1 changed files with 3 additions and 4 deletions
|
@ -2130,15 +2130,14 @@ NetworkController::ResultCode SqliteNetworkController::_doNetworkConfigRequest(c
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!legacy.sign(signingId,now)) {
|
|
||||||
return NETCONF_QUERY_INTERNAL_SERVER_ERROR;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Append legacy network config data for older devices
|
// Append legacy network config data for older devices
|
||||||
if (metaData.protocolVersion < 6) {
|
if (metaData.protocolVersion < 6) {
|
||||||
|
if (!legacy.sign(signingId,now))
|
||||||
|
return NETCONF_QUERY_INTERNAL_SERVER_ERROR;
|
||||||
std::string legacyStr(legacy.toString());
|
std::string legacyStr(legacy.toString());
|
||||||
netconf.append((const void *)legacyStr.data(),(unsigned int)legacyStr.length());
|
netconf.append((const void *)legacyStr.data(),(unsigned int)legacyStr.length());
|
||||||
}
|
}
|
||||||
|
|
||||||
netconf.append((uint8_t)0);
|
netconf.append((uint8_t)0);
|
||||||
|
|
||||||
// Append new format data for newer devices
|
// Append new format data for newer devices
|
||||||
|
|
Loading…
Add table
Reference in a new issue