From c492bf7eea9311279ccece417f51ab2bde8716bd Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 18 Apr 2022 16:36:09 -0400 Subject: [PATCH] Forgot to send error on v0 auth expiry. --- controller/EmbeddedNetworkController.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp index 9bc21ca59..7fed2a647 100644 --- a/controller/EmbeddedNetworkController.cpp +++ b/controller/EmbeddedNetworkController.cpp @@ -1348,6 +1348,7 @@ void EmbeddedNetworkController::_request( Dictionary<4096> authInfo; authInfo.add(ZT_AUTHINFO_DICT_KEY_VERSION, (uint64_t)0ULL); authInfo.add(ZT_AUTHINFO_DICT_KEY_AUTHENTICATION_URL, info.authenticationURL.c_str()); + _sender->ncSendError(nwid,requestPacketId,identity.address(),NetworkController::NC_ERROR_AUTHENTICATION_REQUIRED, authInfo.data(), authInfo.sizeBytes()); } else if (info.version == 1) { Dictionary<8192> authInfo; authInfo.add(ZT_AUTHINFO_DICT_KEY_VERSION, info.version);