Fixed typo

This commit is contained in:
Daniel Wróbel 2020-05-15 18:58:15 +02:00 committed by GitHub
parent 0e791559c5
commit b58a7d56a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -759,7 +759,7 @@ class SyncplayClient(object):
self._endpoint = HostnameEndpoint(reactor, host, port)
try:
caCertFP = open(os.environ['SSL_CERT_FILE'])
caCertTwisted = Certificate.loadPEM(caCertFP.read().encode('utf-8')
caCertTwisted = Certificate.loadPEM(caCertFP.read().encode('utf-8'))
caCertFP.close()
self.protocolFactory.options = optionsForClientTLS(hostname=host)
self._clientSupportsTLS = True