aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-12-30 12:11:49 +0000
committerGitHub <noreply@github.com>2023-12-30 12:11:49 +0000
commit83c0758d90082d5b6f8b158f5aded709088b86b9 (patch)
tree7271148a7fb1faf58799306fb27ec57593eb1b8a
parent1d603eb5a8f577c8fb1ed10785a6d139805101bd (diff)
parent0d5941edbc4c602b760d4200bd76e044c65a0e40 (diff)
downloadstable-diffusion-webui-gfx803-83c0758d90082d5b6f8b158f5aded709088b86b9.tar.gz
stable-diffusion-webui-gfx803-83c0758d90082d5b6f8b158f5aded709088b86b9.tar.bz2
stable-diffusion-webui-gfx803-83c0758d90082d5b6f8b158f5aded709088b86b9.zip
Merge pull request #14354 from ranareehanaslam/master
Update Added (Fixed) IPV6 Functionality When there is No Webui Argument Passed webui.py
-rw-r--r--webui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webui.py b/webui.py
index 9ed20b30..3f5b67a3 100644
--- a/webui.py
+++ b/webui.py
@@ -39,7 +39,7 @@ def api_only():
print(f"Startup time: {startup_timer.summary()}.")
api.launch(
- server_name="0.0.0.0" if cmd_opts.listen else "127.0.0.1",
+ server_name=cmd_opts.server_name or ("0.0.0.0" if cmd_opts.listen else "127.0.0.1"),
port=cmd_opts.port if cmd_opts.port else 7861,
root_path=f"/{cmd_opts.subpath}" if cmd_opts.subpath else ""
)