Fallback check on reason value for SSL reason

This commit is contained in:
Etoh 2022-11-05 20:19:59 +00:00 committed by GitHub
parent 434d035374
commit 5bdee90ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class SyncClientProtocol(JSONCommandProtocol):
elif "mismatched_id=DNS_ID" in str(reason.value): elif "mismatched_id=DNS_ID" in str(reason.value):
self._client.ui.showErrorMessage(getMessage("startTLS-server-certificate-invalid-DNS-ID")) self._client.ui.showErrorMessage(getMessage("startTLS-server-certificate-invalid-DNS-ID"))
self._client._clientSupportsTLS = False self._client._clientSupportsTLS = False
elif "tls" in str(reason.stack): elif "tls" in str(reason.stack) or "SSL" in str(reason.value):
self._client._clientSupportsTLS = False self._client._clientSupportsTLS = False
except: except:
pass pass