summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/web/ServerThread.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/web/ServerThread.py b/module/web/ServerThread.py
index 99137b591..b83864d86 100644
--- a/module/web/ServerThread.py
+++ b/module/web/ServerThread.py
@@ -116,6 +116,9 @@ class WebServer(threading.Thread):
if self.https and not server.SSL:
log.warning(_("This server offers no SSL, please consider using threaded instead"))
+ elif not self.https:
+ self.cert = self.key = None # This implicitly disables SSL
+ # there is no extra argument for the server adapter
# Now instantiate the serverAdapter
server = server(self.host, self.port, self.key, self.cert, 6, self.debug) # todo, num_connections