Skip to content

Commit aeb9706

Browse files
committed
bind firegex also on ipv6 by default
1 parent 402be8c commit aeb9706

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

backend/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ async def reset_firegex(form: ResetRequest):
224224
os.chdir(os.path.dirname(os.path.realpath(__file__)))
225225
uvicorn.run(
226226
"app:app",
227-
host=FIREGEX_HOST,
227+
# None allows to bind also on ipv6, and is selected if FIREGEX_HOST is any
228+
host=None if FIREGEX_HOST == "any" else FIREGEX_HOST,
228229
port=FIREGEX_PORT,
229230
reload=DEBUG and not NORELOAD,
230231
access_log=True,

run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ def load_config():
9595
import json
9696
default_config = {
9797
"port": 4444,
98-
"host": "0.0.0.0"
98+
# any allow to bind service also on ipv6 (see the main of backend to understand why)
99+
"host": "any"
99100
}
100101

101102
if os.path.isfile(g.configfile):

0 commit comments

Comments
 (0)