anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / networking / syncplay / trusted_certificates.patch
blob4cf613080024aed5780a3aa169a297822ddf136b
1 diff --git a/syncplay/client.py b/syncplay/client.py
2 index 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