Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#4583 from NoCrypt/patch-1
Browse files Browse the repository at this point in the history
Forcing HTTPS instead of HTTP for ngrok
  • Loading branch information
AUTOMATIC1111 authored Nov 27, 2022
2 parents 506d529 + 6165f07 commit c33b9a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ngrok.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def connect(token, port, region):
)
try:
if account == None:
public_url = ngrok.connect(port, pyngrok_config=config).public_url
public_url = ngrok.connect(port, pyngrok_config=config, bind_tls=True).public_url
else:
public_url = ngrok.connect(port, pyngrok_config=config, auth=account).public_url
public_url = ngrok.connect(port, pyngrok_config=config, bind_tls=True, auth=account).public_url
except exception.PyngrokNgrokError:
print(f'Invalid ngrok authtoken, ngrok connection aborted.\n'
f'Your token: {token}, get the right one on https://dashboard.ngrok.com/get-started/your-authtoken')
Expand Down

0 comments on commit c33b9a6

Please sign in to comment.