diff --git a/backend/app.py b/backend/app.py index dc535d0..368c529 100644 --- a/backend/app.py +++ b/backend/app.py @@ -224,7 +224,8 @@ if __name__ == '__main__': os.chdir(os.path.dirname(os.path.realpath(__file__))) uvicorn.run( "app:app", - host=FIREGEX_HOST, + # None allows to bind also on ipv6, and is selected if FIREGEX_HOST is any + host=None if FIREGEX_HOST == "any" else FIREGEX_HOST, port=FIREGEX_PORT, reload=DEBUG and not NORELOAD, access_log=True, diff --git a/run.py b/run.py index c62ed87..d0f3c1e 100755 --- a/run.py +++ b/run.py @@ -95,7 +95,8 @@ def load_config(): import json default_config = { "port": 4444, - "host": "0.0.0.0" + # any allow to bind service also on ipv6 (see the main of backend to understand why) + "host": "any" } if os.path.isfile(g.configfile):