Tweak certificate of membership revision/time tolerance to eliminate boundary packet loss issues occasionally seen in the wild.

This commit is contained in:
Adam Ierymenko 2016-02-10 09:32:42 -08:00
parent 4769dacf61
commit 10bb9919f1
2 changed files with 11 additions and 1 deletions

View file

@ -2034,7 +2034,7 @@ NetworkController::ResultCode SqliteNetworkController::_doNetworkConfigRequest(c
}
if (network.isPrivate) {
CertificateOfMembership com(now,ZT_NETWORK_AUTOCONF_DELAY + (ZT_NETWORK_AUTOCONF_DELAY / 2),nwid,identity.address());
CertificateOfMembership com(now,ZT_NETWORK_COM_DEFAULT_REVISION_MAX_DELTA,nwid,identity.address());
if (com.sign(signingId)) // basically can't fail unless our identity is invalid
netconf[ZT_NETWORKCONFIG_DICT_KEY_CERTIFICATE_OF_MEMBERSHIP] = com.toString();
else {