diff options
author | papuSpartan <mcgpapu@gmail.com> | 2022-11-14 20:07:13 +0000 |
---|---|---|
committer | papuSpartan <mcgpapu@gmail.com> | 2022-11-14 20:07:13 +0000 |
commit | 3405acc6a4dcef2b73782a04924a9a12422e54f0 (patch) | |
tree | 28ebc7e594a100cffc4eb90bc8a29ff4532e1a9b /webui.py | |
parent | 98947d173e3f1667eba29c904f681047dea9de90 (diff) | |
download | stable-diffusion-webui-gfx803-3405acc6a4dcef2b73782a04924a9a12422e54f0.tar.gz stable-diffusion-webui-gfx803-3405acc6a4dcef2b73782a04924a9a12422e54f0.tar.bz2 stable-diffusion-webui-gfx803-3405acc6a4dcef2b73782a04924a9a12422e54f0.zip |
Give --server-name priority over --listen and add check for --server-name in addition to --share and --listen
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -33,7 +33,10 @@ from modules.shared import cmd_opts import modules.hypernetworks.hypernetwork
queue_lock = threading.Lock()
-server_name = "0.0.0.0" if cmd_opts.listen else cmd_opts.server_name
+if cmd_opts.server_name:
+ server_name = cmd_opts.server_name
+else:
+ server_name = "0.0.0.0" if cmd_opts.listen else None
def wrap_queued_call(func):
def f(*args, **kwargs):
|