From dc5c63a57c3463dd0c72ee466298aff428fa3e42 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 ed7590e..a7f1a07 100755 --- a/syncplay/protocols.py +++ b/syncplay/protocols.py @@ -88,6 +88,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()