mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-30 22:34:32 +02:00
commit
1e4cca54b6
@ -104,12 +104,15 @@ call python --version
|
|||||||
|
|
||||||
@FOR /F "tokens=* USEBACKQ" %%F IN (`python scripts\get_config.py --default=False net listen_to_network`) DO (
|
@FOR /F "tokens=* USEBACKQ" %%F IN (`python scripts\get_config.py --default=False net listen_to_network`) DO (
|
||||||
if "%%F" EQU "True" (
|
if "%%F" EQU "True" (
|
||||||
@SET ED_BIND_IP=0.0.0.0
|
@FOR /F "tokens=* USEBACKQ" %%G IN (`python scripts\get_config.py --default=0.0.0.0 net bind_ip`) DO (
|
||||||
|
@SET ED_BIND_IP=%%G
|
||||||
|
)
|
||||||
) else (
|
) else (
|
||||||
@SET ED_BIND_IP=127.0.0.1
|
@SET ED_BIND_IP=127.0.0.1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@cd stable-diffusion
|
@cd stable-diffusion
|
||||||
|
|
||||||
@rem set any overrides
|
@rem set any overrides
|
||||||
|
@ -72,7 +72,7 @@ export SD_UI_PATH=`pwd`/ui
|
|||||||
export ED_BIND_PORT="$( python scripts/get_config.py --default=9000 net listen_port )"
|
export ED_BIND_PORT="$( python scripts/get_config.py --default=9000 net listen_port )"
|
||||||
case "$( python scripts/get_config.py --default=False net listen_to_network )" in
|
case "$( python scripts/get_config.py --default=False net listen_to_network )" in
|
||||||
"True")
|
"True")
|
||||||
export ED_BIND_IP=0.0.0.0
|
export ED_BIND_IP=$( python scripts/get_config.py --default=0.0.0.0 net bind_ip)
|
||||||
;;
|
;;
|
||||||
"False")
|
"False")
|
||||||
export ED_BIND_IP=127.0.0.1
|
export ED_BIND_IP=127.0.0.1
|
||||||
|
Loading…
Reference in New Issue
Block a user