Revert "Only allow 'tls_insecure_set()' if cert is present (fixes #8329)"

This reverts commit 85ac50cc77.
pull/8337/head
Fabian Affolter 2017-07-04 13:46:38 +02:00
parent 85ac50cc77
commit 2e17d0926a
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336
1 changed files with 2 additions and 2 deletions

View File

@ -452,8 +452,8 @@ class MQTT(object):
certificate, certfile=client_cert,
keyfile=client_key, tls_version=tls_version)
if tls_insecure is not None:
self._mqttc.tls_insecure_set(tls_insecure)
if tls_insecure is not None:
self._mqttc.tls_insecure_set(tls_insecure)
self._mqttc.on_subscribe = self._mqtt_on_subscribe
self._mqttc.on_unsubscribe = self._mqtt_on_unsubscribe