From 063a191e99337ed1a1be40cd809dcf0e24ac7f8b Mon Sep 17 00:00:00 2001 From: Alberto Sottile Date: Mon, 4 Feb 2019 19:50:09 +0100 Subject: [PATCH] startTLS: fall back to TCP if server certificate is not validated --- syncplay/protocols.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syncplay/protocols.py b/syncplay/protocols.py index 1b63774..e52bb15 100755 --- a/syncplay/protocols.py +++ b/syncplay/protocols.py @@ -85,6 +85,8 @@ class SyncClientProtocol(JSONCommandProtocol): try: if "Invalid DNS-ID" in str(reason.value): self._client._serverSupportsTLS = False + elif "certificate verify failed" in str(reason.value): + self._client._serverSupportsTLS = False except: pass self._client.destroyProtocol()