summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2022-06-27 16:03:20 +0200
committerGitHub <noreply@github.com>2022-06-27 16:03:20 +0200
commitcb13f0787d77c5e36f79ab18f492a52e0ec11123 (patch)
tree3f3f0269b34d895bb38d8c7bbc45cbd18022ac6c /web
parentb8bfe953fbc8b35e13bd85975d4b23b90a6346b8 (diff)
Removes Legacy JSON Cloud Protocol Support In Agent (#13111)
* removes old protocol support (cloud removed support already)
Diffstat (limited to 'web')
-rw-r--r--web/api/web_api_v1.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c
index 05f24d0b93..cad97048a5 100644
--- a/web/api/web_api_v1.c
+++ b/web/api/web_api_v1.c
@@ -3,7 +3,6 @@
#include "web_api_v1.h"
char *api_secret;
-extern int aclk_use_new_cloud_arch;
static struct {
const char *name;
@@ -1062,11 +1061,7 @@ inline int web_client_api_request_v1_info_fill_buffer(RRDHOST *host, BUFFER *wb)
#ifdef ENABLE_ACLK
buffer_strcat(wb, "\t\"cloud-available\": true,\n");
buffer_strcat(wb, "\t\"aclk-ng-available\": true,\n");
-#ifdef ENABLE_NEW_CLOUD_PROTOCOL
buffer_strcat(wb, "\t\"aclk-ng-new-cloud-protocol\": true,\n");
-#else
- buffer_strcat(wb, "\t\"aclk-ng-new-cloud-protocol\": false,\n");
-#endif
buffer_strcat(wb, "\t\"aclk-legacy-available\": false,\n");
buffer_strcat(wb, "\t\"aclk-implementation\": \"Next Generation\",\n");
#else
@@ -1084,12 +1079,7 @@ inline int web_client_api_request_v1_info_fill_buffer(RRDHOST *host, BUFFER *wb)
#ifdef ENABLE_ACLK
if (aclk_connected) {
buffer_strcat(wb, "\t\"aclk-available\": true,\n");
-#ifdef ENABLE_NEW_CLOUD_PROTOCOL
- if (aclk_use_new_cloud_arch)
- buffer_strcat(wb, "\t\"aclk-available-protocol\": \"New\",\n");
- else
-#endif
- buffer_strcat(wb, "\t\"aclk-available-protocol\": \"Legacy\",\n");
+ buffer_strcat(wb, "\t\"aclk-available-protocol\": \"New\",\n");
}
else
#endif