Skip to content

Commit 08e8178

Browse files
AUTOMATIC1111ruchej
authored andcommitted
1 parent 573e4e7 commit 08e8178

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=cmd_opts.server_name or ("0.0.0.0" if cmd_opts.listen else "127.0.0.1"),
42+
server_name=initialize_util.gradio_server_name(),
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)