From 0492f16cea5d93d0f5e345fdffbcc293d54b25b1 Mon Sep 17 00:00:00 2001 From: Domingo Dirutigliano Date: Mon, 29 Sep 2025 16:28:26 +0200 Subject: [PATCH] using empty string instead of None to bind dualstack server --- backend/app.py | 2 +- run.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app.py b/backend/app.py index 00f82ba..691569f 100644 --- a/backend/app.py +++ b/backend/app.py @@ -227,7 +227,7 @@ if __name__ == '__main__': uvicorn.run( "app:app", # None allows to bind also on ipv6, and is selected if FIREGEX_HOST is any - host=None if FIREGEX_HOST == "any" else FIREGEX_HOST, + host="" 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 31efba3..54daeba 100755 --- a/run.py +++ b/run.py @@ -309,7 +309,7 @@ def write_compose(skip_password = True): "container_name": "firegex", "build" if g.build else "image": "." if g.build else f"ghcr.io/pwnzer0tt1/firegex:{args.version}", "ports": [ - f"{args.host}:{args.port}:{args.port}" + f"{'' if args.host == 'any' else args.host+':'}{args.port}:{args.port}" ], "environment": [ f"PORT={args.port}",