diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-30 12:11:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-30 12:11:49 +0000 |
commit | 83c0758d90082d5b6f8b158f5aded709088b86b9 (patch) | |
tree | 7271148a7fb1faf58799306fb27ec57593eb1b8a /webui.py | |
parent | 1d603eb5a8f577c8fb1ed10785a6d139805101bd (diff) | |
parent | 0d5941edbc4c602b760d4200bd76e044c65a0e40 (diff) | |
download | stable-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
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ""
)
|