diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-10 09:32:42 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-10 09:32:42 -0800 |
commit | 10bb9919f15a7777905f3d43ca01325a229203c7 (patch) | |
tree | 43f4586514991176560cd4b65c25e4cc06e4fe85 /controller | |
parent | 4769dacf6102342ddd4519cfe8227bf6fc49fbcc (diff) | |
download | infinitytier-10bb9919f15a7777905f3d43ca01325a229203c7.tar.gz infinitytier-10bb9919f15a7777905f3d43ca01325a229203c7.zip |
Tweak certificate of membership revision/time tolerance to eliminate boundary packet loss issues occasionally seen in the wild.
Diffstat (limited to 'controller')
-rw-r--r-- | controller/SqliteNetworkController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/SqliteNetworkController.cpp b/controller/SqliteNetworkController.cpp index 804c763d..352f212e 100644 --- a/controller/SqliteNetworkController.cpp +++ b/controller/SqliteNetworkController.cpp @@ -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 { |