From b9b50d68a43264db4d33bbbcb34bb6a242a37ea7 Mon Sep 17 00:00:00 2001 From: C00kie- Date: Mon, 6 Jul 2020 17:13:36 +0200 Subject: [PATCH] Update Flask_server.py --- var/www/Flask_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/www/Flask_server.py b/var/www/Flask_server.py index 9894ba76..5f1f22d4 100755 --- a/var/www/Flask_server.py +++ b/var/www/Flask_server.py @@ -49,6 +49,7 @@ Flask_dir = os.environ['AIL_FLASK'] # CONFIG # config_loader = ConfigLoader.ConfigLoader() baseUrl = config_loader.get_config_str("Flask", "baseurl") +host = config_loader.get_config_str("Flask", "host") baseUrl = baseUrl.replace('/', '') if baseUrl != '': baseUrl = '/'+baseUrl @@ -253,4 +254,4 @@ r_serv_db.sadd('list_export_tags', 'infoleak:submission="manual"') # ============ MAIN ============ if __name__ == "__main__": - app.run(host='0.0.0.0', port=FLASK_PORT, threaded=True, ssl_context=ssl_context) + app.run(host=host, port=FLASK_PORT, threaded=True, ssl_context=ssl_context)