summaryrefslogtreecommitdiffstats
path: root/pyload/remote/WebSocketBackend.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/remote/WebSocketBackend.py')
-rw-r--r--pyload/remote/WebSocketBackend.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyload/remote/WebSocketBackend.py b/pyload/remote/WebSocketBackend.py
index 7238af679..55edee50e 100644
--- a/pyload/remote/WebSocketBackend.py
+++ b/pyload/remote/WebSocketBackend.py
@@ -48,10 +48,11 @@ class WebSocketBackend(BackendBase):
# tls is needed when requested or webUI is also on tls
if self.core.api.isWSSecure():
from wsbackend.Server import import_ssl
- if import_ssl():
+ tls_module = import_ssl()
+ if tls_module:
options.use_tls = True
+ options.tls_module = tls_module
options.certificate = self.core.config['ssl']['cert']
- options.ca_certificate = options.certificate
options.private_key = self.core.config['ssl']['key']
self.core.log.info(_('Using secure WebSocket'))
else: