From f4063baa8b141dc2fd52bddac48682e8031c4d89 Mon Sep 17 00:00:00 2001 From: igloodan Date: Fri, 22 Oct 2021 12:21:26 +0000 Subject: [PATCH] remove redundant tls_insecure_set() call --- thingsboard_gateway/gateway/tb_client.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/thingsboard_gateway/gateway/tb_client.py b/thingsboard_gateway/gateway/tb_client.py index 2411a467..99a05a99 100644 --- a/thingsboard_gateway/gateway/tb_client.py +++ b/thingsboard_gateway/gateway/tb_client.py @@ -54,11 +54,8 @@ class TBClient(threading.Thread): tls_version=PROTOCOL_TLSv1_2, cert_reqs=CERT_REQUIRED, ciphers=None) - if (self.__ca_cert is not None and (self.__private_key is not None or self.__cert is not None)): - self.client._client.tls_insecure_set(False) if credentials.get("insecure", False): self.client._client.tls_insecure_set(True) - # if self.__tls and self.__ca_cert is None and self.__private_key is None and self.__cert is None: # pylint: disable=protected-access # Adding callbacks self.client._client._on_connect = self._on_connect