Allow specifying the region of ngrok.

This commit is contained in:
ddPn08
2022-10-16 09:24:01 +09:00
committed by AUTOMATIC1111
parent 179e3ca752
commit 3395ba493f
3 changed files with 7 additions and 4 deletions

View File

@@ -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):