提交 5c66fb1c 编写于 作者: R Roger A. Light

subscribe-simple: Add correct default for tls_version.

Change-Id: I6e0eda7e0dd3f654c2d9d6b16ec291feb68d42ce
上级 fdec2a9f
......@@ -20,6 +20,7 @@ you to pass a callback for processing of messages.
"""
import paho.mqtt.client as mqtt
import ssl
def _on_connect(c, userdata, flags, rc):
......@@ -162,7 +163,7 @@ def callback(callback, topics, qos=0, userdata=None, hostname="localhost",
try:
tls_version = tls['tls_version']
except KeyError:
tls_version = None
tls_version = ssl.PROTOCOL_SSLv23;
try:
ciphers = tls['ciphers']
except KeyError:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册