Skip to content

Commit 83c0758

Browse files
Merge pull request #14354 from ranareehanaslam/master
Update Added (Fixed) IPV6 Functionality When there is No Webui Argument Passed webui.py
2 parents 1d603eb + 0d5941e commit 83c0758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def api_only():
3939

4040
print(f"Startup time: {startup_timer.summary()}.")
4141
api.launch(
42-
server_name="0.0.0.0" if cmd_opts.listen else "127.0.0.1",
42+
server_name=cmd_opts.server_name or ("0.0.0.0" if cmd_opts.listen else "127.0.0.1"),
4343
port=cmd_opts.port if cmd_opts.port else 7861,
4444
root_path=f"/{cmd_opts.subpath}" if cmd_opts.subpath else ""
4545
)

0 commit comments

Comments
 (0)