Forcing HTTPS instead of HTTP for ngrok
For security reason.
This commit is contained in:
parent
ac08562854
commit
c556d34523
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user