summaryrefslogtreecommitdiffstats
path: root/registry/registry.c
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-07-11 13:13:46 +0300
committerGitHub <noreply@github.com>2023-07-11 13:13:46 +0300
commit62acce9151b876955792aee71a834cc00f0f4e47 (patch)
treed93df93ffcf90aab14d13d9787b12f085fb561dc /registry/registry.c
parent75ecb70175a778a8a389307b0048cf8fd53c5064 (diff)
bearer protection - additions (#15349)
add bearer protection status flag in registry hello response
Diffstat (limited to 'registry/registry.c')
-rw-r--r--registry/registry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/registry/registry.c b/registry/registry.c
index 378e5f8afd..b8935d4e99 100644
--- a/registry/registry.c
+++ b/registry/registry.c
@@ -175,6 +175,7 @@ int registry_request_hello_json(RRDHOST *host, struct web_client *w) {
buffer_json_member_add_string(w->response.data, "registry", registry.registry_to_announce);
buffer_json_member_add_string(w->response.data, "cloud_base_url", registry.cloud_base_url);
buffer_json_member_add_boolean(w->response.data, "anonymous_statistics", netdata_anonymous_statistics_enabled);
+ buffer_json_member_add_boolean(w->response.data, "bearer_protection", netdata_is_protected_by_bearer);
buffer_json_member_add_array(w->response.data, "nodes");
RRDHOST *h;