Unverified Commit c556d345 authored by NoCrypt's avatar NoCrypt Committed by GitHub

Forcing HTTPS instead of HTTP for ngrok

For security reason.
parent ac085628
...@@ -8,7 +8,7 @@ def connect(token, port, region): ...@@ -8,7 +8,7 @@ def connect(token, port, region):
auth_token=token, region=region auth_token=token, region=region
) )
try: 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: except exception.PyngrokNgrokError:
print(f'Invalid ngrok authtoken, ngrok connection aborted.\n' 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') f'Your token: {token}, get the right one on https://dashboard.ngrok.com/get-started/your-authtoken')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment