diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-02 16:36:13 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-02 16:36:13 +0200 |
commit | d2025190eba38cdcc3894130f756114374c08b3d (patch) | |
tree | 61a90ccf0f052f0a0b49aee66e04d22e49d62411 /pyload/manager/thread/Server.py | |
parent | Use 'import' instead 'from' (2) (diff) | |
download | pyload-d2025190eba38cdcc3894130f756114374c08b3d.tar.xz |
Auto choose webserver
Diffstat (limited to 'pyload/manager/thread/Server.py')
-rw-r--r-- | pyload/manager/thread/Server.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/manager/thread/Server.py b/pyload/manager/thread/Server.py index 6eab58ca7..a26ffe6a1 100644 --- a/pyload/manager/thread/Server.py +++ b/pyload/manager/thread/Server.py @@ -63,7 +63,7 @@ class WebServer(threading.Thread): log.warning(_("You need to download and compile bjoern, https://github.com/jonashaag/bjoern")) log.warning(_("Copy the boern.so file to lib/Python/Lib or use setup.py install")) log.warning(_("Of course you need to be familiar with linux and know how to compile software")) - self.server = "builtin" + self.server = "auto" else: self.core.log.info(_("Server set to threaded, due to known performance problems on windows.")) self.core.config.set("webui", "server", "threaded") @@ -76,15 +76,15 @@ class WebServer(threading.Thread): elif self.server == "lightweight": self.start_lightweight() else: - self.start_builtin() + self.start_auto() - def start_builtin(self): + def start_auto(self): if self.https: log.warning(_("This server offers no SSL, please consider using `threaded` instead")) self.core.log.info(_("Starting builtin webserver: %(host)s:%(port)d") % {"host": self.host, "port": self.port}) - webinterface.run_simple(host=self.host, port=self.port) + webinterface.run_auto(host=self.host, port=self.port) def start_threaded(self): |