mirror of
https://github.com/Syncplay/syncplay
synced 2025-02-20 13:06:49 +00:00
startTLS: fall back to TCP if server certificate is not validated
This commit is contained in:
parent
fe11e66b29
commit
063a191e99
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user