bind firegex also on ipv6 by default

This commit is contained in:
Domingo Dirutigliano
2025-09-29 13:15:09 +02:00
parent 402be8c021
commit aeb97062e2
2 changed files with 4 additions and 2 deletions

View File

@@ -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,