File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments