Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#12814 from AUTOMATIC1111/non-local-c…
Browse files Browse the repository at this point in the history
…ondition

non-local condition
  • Loading branch information
AUTOMATIC1111 committed Aug 27, 2023
1 parent d0d5075 commit bfc5c08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/shared_cmd_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
cmd_opts, _ = parser.parse_known_args()


cmd_opts.disable_extension_access = (cmd_opts.share or cmd_opts.listen or cmd_opts.server_name) and not cmd_opts.enable_insecure_extension_access
cmd_opts.disable_extension_access = any([cmd_opts.share, cmd_opts.listen, cmd_opts.ngrok, cmd_opts.server_name]) and not cmd_opts.enable_insecure_extension_access
2 changes: 1 addition & 1 deletion webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def webui():
if shared.opts.auto_launch_browser == "Remote" or cmd_opts.autolaunch:
auto_launch_browser = True
elif shared.opts.auto_launch_browser == "Local":
auto_launch_browser = not any([cmd_opts.listen, cmd_opts.share, cmd_opts.ngrok])
auto_launch_browser = not any([cmd_opts.listen, cmd_opts.share, cmd_opts.ngrok, cmd_opts.server_name])

app, local_url, share_url = shared.demo.launch(
share=cmd_opts.share,
Expand Down

0 comments on commit bfc5c08

Please sign in to comment.