From c535ae8f1a9a3d4256896154dc0af2d6918059c2 Mon Sep 17 00:00:00 2001 From: s3lph Date: Wed, 29 Sep 2021 03:40:13 +0200 Subject: [PATCH] Fix config loading bug in webserver --- easywks/__init__.py | 2 +- easywks/{server.py => httpd.py} | 2 +- easywks/main.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename easywks/{server.py => httpd.py} (95%) diff --git a/easywks/__init__.py b/easywks/__init__.py index 9dd5eb4..de3e537 100644 --- a/easywks/__init__.py +++ b/easywks/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.1.3' +__version__ = '0.1.4' diff --git a/easywks/server.py b/easywks/httpd.py similarity index 95% rename from easywks/server.py rename to easywks/httpd.py index 81b8df2..860c3ef 100644 --- a/easywks/server.py +++ b/easywks/httpd.py @@ -39,7 +39,7 @@ def hu(domain: str, userhash: str): def run_server(): - run(host=Config.host, port=Config.port) + run(host=Config.httpd['host'], port=Config.httpd['port']) if __name__ == '__main__': diff --git a/easywks/main.py b/easywks/main.py index 626705d..7af0d5a 100644 --- a/easywks/main.py +++ b/easywks/main.py @@ -2,7 +2,7 @@ from .config import Config from .files import init_working_directory, clean_stale_requests from .process import process_mail_from_stdin -from .server import run_server +from .httpd import run_server from .lmtpd import run_lmtpd