Forcing HTTPS instead of HTTP for ngrok

For security reason.
This commit is contained in:
NoCrypt 2022-11-11 08:54:51 +07:00 committed by GitHub
parent ac08562854
commit c556d34523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ def connect(token, port, region):
auth_token=token, region=region
)
try:
public_url = ngrok.connect(port, pyngrok_config=config).public_url
public_url = ngrok.connect(port, pyngrok_config=config, bind_tls=True).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')