aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorddPn08 <pyn.g.1125@gmail.com>2022-10-16 00:24:01 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-16 06:56:33 +0000
commit3395ba493f93214cf037d084d45693a37610bd85 (patch)
tree03a3bafb74eb3fe893fc76f4660bedf6bba3e6f7 /modules/ui.py
parent179e3ca752d0133470fd3ae44153ee0b71450c9f (diff)
downloadstable-diffusion-webui-gfx803-3395ba493f93214cf037d084d45693a37610bd85.tar.gz
stable-diffusion-webui-gfx803-3395ba493f93214cf037d084d45693a37610bd85.tar.bz2
stable-diffusion-webui-gfx803-3395ba493f93214cf037d084d45693a37610bd85.zip
Allow specifying the region of ngrok.
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 08fa72c6..5c0eaf73 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -56,7 +56,7 @@ if not cmd_opts.share and not cmd_opts.listen:
if cmd_opts.ngrok != None:
import modules.ngrok as ngrok
print('ngrok authtoken detected, trying to connect...')
- ngrok.connect(cmd_opts.ngrok, cmd_opts.port if cmd_opts.port != None else 7860)
+ ngrok.connect(cmd_opts.ngrok, cmd_opts.port if cmd_opts.port != None else 7860, cmd_opts.ngrok_region)
def gr_show(visible=True):