summaryrefslogtreecommitdiffstats
path: root/aclk
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2022-02-23 19:54:50 +0100
committerGitHub <noreply@github.com>2022-02-23 19:54:50 +0100
commitafdd2594206ea7442b1148be69e72557fa8a1c6f (patch)
treeb09b2f34970050b7bc5f6ea4db4117dd1cb19e24 /aclk
parenta763d4111c13022f7b2014a2444d232a7edc7f7c (diff)
remove ACLK_NEWARCH_DEVMODE (#12018)
Diffstat (limited to 'aclk')
-rw-r--r--aclk/aclk.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/aclk/aclk.c b/aclk/aclk.c
index c25b7df684..43f7559748 100644
--- a/aclk/aclk.c
+++ b/aclk/aclk.c
@@ -613,12 +613,7 @@ static int aclk_attempt_to_connect(mqtt_wss_client client)
.drop_on_publish_fail = 1
};
-#if defined(ENABLE_NEW_CLOUD_PROTOCOL) && defined(ACLK_NEWARCH_DEVMODE)
- aclk_use_new_cloud_arch = 1;
- info("Switching ACLK to new protobuf protocol. Due to #define ACLK_NEWARCH_DEVMODE.");
-#else
aclk_use_new_cloud_arch = 0;
-#endif
#ifndef ACLK_DISABLE_CHALLENGE
if (aclk_env) {
@@ -638,20 +633,19 @@ static int aclk_attempt_to_connect(mqtt_wss_client client)
if (netdata_exit)
return 1;
-#ifndef ACLK_NEWARCH_DEVMODE
if (aclk_env->encoding == ACLK_ENC_PROTO) {
#ifndef ENABLE_NEW_CLOUD_PROTOCOL
error("Cloud requested New Cloud Protocol to be used but this agent cannot support it!");
continue;
-#endif
+#else
if (!aclk_env_has_capa("proto")) {
error ("Can't encoding=proto without at least \"proto\" capability.");
continue;
}
info("Switching ACLK to new protobuf protocol. Due to /env response.");
aclk_use_new_cloud_arch = 1;
- }
#endif
+ }
memset(&auth_url, 0, sizeof(url_t));
if (url_parse(aclk_env->auth_endpoint, &auth_url)) {