From beb4afc8eca58c51f693bbc842c78674364ad739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E4=B8=BA=E4=B9=8B?= <560397@gree.com.cn> Date: Tue, 21 Nov 2023 14:05:24 +0800 Subject: [PATCH] Update project --- app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 87cae6c..e43bd91 100644 --- a/app.py +++ b/app.py @@ -34,13 +34,11 @@ def runserver(): # The 'Server' key is assumed to be a dictionary containing the keys 'IP' and 'Port'. cfg = app.config['Server'] - # Retrieve the host and port from the config. - # If they're not present, default to '0.0.0.0' for the host and '5000' for the port. - host = cfg.get('IP', '0.0.0.0') + # Retrieve the port from the config. port = cfg.get('Port', 5000) # Run the Flask development server. - app.run(host=host, port=port, use_reloader=False) + app.run(host='0.0.0.0', port=port, use_reloader=False) if __name__ == '__main__': -- GitLab