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