Skip to content

Commit 006faaf

Browse files
fix(host): default to localhost
1 parent 01f0063 commit 006faaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
else:
2323
app.config.from_object(app_config.DevConfig)
2424

25+
DEFAULT_HOST = app.config.get("DEFAULT_HOST")
2526
PORT = int(app.config.get("DEFAULT_PORT"))
2627
ORIGINS = app.config.get("ORIGINS")
2728
SSL = app.config.get("SSL")
@@ -50,4 +51,4 @@ def return_error():
5051
# ''' Main '''
5152
if __name__ == "__main__":
5253
print(f"Python is running in {FLASK_DEBUG} mode")
53-
app.run(debug=FLASK_DEBUG, host="0.0.0.0", port=PORT, ssl_context=SSL)
54+
app.run(debug=FLASK_DEBUG, host=DEFAULT_HOST, port=PORT, ssl_context=SSL)

0 commit comments

Comments
 (0)