From 65587536ab8771eebba0f7c228bc07615391f425 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Wed, 9 Nov 2022 11:08:25 +0530 Subject: [PATCH] Fix typo in binding of host/ip --- scripts/on_sd_start.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/on_sd_start.bat b/scripts/on_sd_start.bat index 241f6e3b..48894771 100644 --- a/scripts/on_sd_start.bat +++ b/scripts/on_sd_start.bat @@ -351,9 +351,9 @@ call python --version @set SD_UI_PATH=%cd%\ui @cd stable-diffusion -@if "%SD_UI_BIND_PORT%" == "" set SD_UI_BIND_PORT=9000 -@if "%SD_UI_BIND_IP%" == "" set SD_UI_BIND_PORT=0.0.0.0 -@uvicorn server:app --app-dir "%SD_UI_PATH%" --port 9000 --host 0.0.0.0 +@if NOT DEFINED SD_UI_BIND_PORT set SD_UI_BIND_PORT=9000 +@if NOT DEFINED SD_UI_BIND_IP set SD_UI_BIND_IP=0.0.0.0 +@uvicorn server:app --app-dir "%SD_UI_PATH%" --port %SD_UI_BIND_PORT% --host %SD_UI_BIND_IP% @pause