Forgot to set auth info in NetworkConfig.

This commit is contained in:
Adam Ierymenko 2021-05-25 13:02:06 -04:00
parent 2c1d7f3dcc
commit 621898f3c5
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3

View File

@ -1379,6 +1379,9 @@ void EmbeddedNetworkController::_request(
// If we made it this far, they are authorized (and authenticated).
// -------------------------------------------------------------------------
nc->authenticationURL = authenticationURL;
nc->authenticationExpiryTime = authenticationExpiryTime;
int64_t credentialtmd = ZT_NETWORKCONFIG_DEFAULT_CREDENTIAL_TIME_MAX_MAX_DELTA;
if (now > ns.mostRecentDeauthTime) {
// If we recently de-authorized a member, shrink credential TTL/max delta to