summaryrefslogtreecommitdiffstats
path: root/aclk/aclk_lws_https_client.c
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2020-10-06 11:12:22 +0200
committerGitHub <noreply@github.com>2020-10-06 11:12:22 +0200
commitbc1fa29ec33f492cf27f709b24c5fc5bf952881b (patch)
tree2faa4e8c933a3c4cd4ba6c012ceb1c330b3b98a9 /aclk/aclk_lws_https_client.c
parentfa45006179f07ecd7f6dca6088d0336e4407c895 (diff)
Allow connecting to arbitrary MQTT WSS broker for devs (#9999)
* adds a simple way to disable of ACLK challenge for devs * remove unnecessary back and forth conversions (int<->str) for ACLK port
Diffstat (limited to 'aclk/aclk_lws_https_client.c')
-rw-r--r--aclk/aclk_lws_https_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aclk/aclk_lws_https_client.c b/aclk/aclk_lws_https_client.c
index 018aee259c..5d54c79583 100644
--- a/aclk/aclk_lws_https_client.c
+++ b/aclk/aclk_lws_https_client.c
@@ -147,7 +147,7 @@ static void simple_hcc_log_divert(int level, const char *line)
error("Libwebsockets: %s", line);
}
-int aclk_send_https_request(char *method, char *host, char *port, char *url, char *b, size_t b_size, char *payload)
+int aclk_send_https_request(char *method, char *host, int port, char *url, char *b, size_t b_size, char *payload)
{
info("%s %s", __func__, method);
@@ -198,7 +198,7 @@ int aclk_send_https_request(char *method, char *host, char *port, char *url, cha
i.ssl_connection |= LCCSCF_SKIP_SERVER_CERT_HOSTNAME_CHECK;
#endif
- i.port = atoi(port);
+ i.port = port;
i.address = host;
i.path = url;