From b5ed8a3154ef003e8353e7642024a5432d1e7aaf Mon Sep 17 00:00:00 2001 From: travisladuke Date: Tue, 30 Jan 2024 11:50:46 -0800 Subject: [PATCH] Store a network members `name` Because the GET request to get a specific member just dumps the whole member object, `name` is included there too for free. --- controller/EmbeddedNetworkController.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp index a01b68a9d..064907201 100644 --- a/controller/EmbeddedNetworkController.cpp +++ b/controller/EmbeddedNetworkController.cpp @@ -1068,6 +1068,7 @@ void EmbeddedNetworkController::configureHTTPControlPlane( if (b.count("noAutoAssignIps")) member["noAutoAssignIps"] = OSUtils::jsonBool(b["noAutoAssignIps"], false); if (b.count("authenticationExpiryTime")) member["authenticationExpiryTime"] = (uint64_t)OSUtils::jsonInt(b["authenticationExpiryTime"], 0ULL); if (b.count("authenticationURL")) member["authenticationURL"] = OSUtils::jsonString(b["authenticationURL"], ""); + if (b.count("name")) member["name"] = OSUtils::jsonString(b["name"], ""); if (b.count("remoteTraceTarget")) { const std::string rtt(OSUtils::jsonString(b["remoteTraceTarget"],""));