mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-15 11:36:54 +02:00
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.
This commit is contained in:
parent
c6d5dc1534
commit
06399c86f6
1 changed files with 1 additions and 0 deletions
|
@ -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"],""));
|
||||
|
|
Loading…
Add table
Reference in a new issue