Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 12 lines 638 B view raw
1diff --git a/syncplay/client.py b/syncplay/client.py 2index b7cb245..be72d94 100755 3--- a/syncplay/client.py 4+++ b/syncplay/client.py 5@@ -848,6 +848,7 @@ class SyncplayClient(object): 6 self._endpoint = HostnameEndpoint(reactor, host, port) 7 try: 8 certs = pem.parse_file(SSL_CERT_FILE) 9+ certs = [cert for cert in certs if type(cert) is pem.Certificate] 10 trustRoot = trustRootFromCertificates([Certificate.loadPEM(str(cert)) for cert in certs]) 11 self.protocolFactory.options = optionsForClientTLS(hostname=host, trustRoot=trustRoot) 12 self._clientSupportsTLS = True