Skip to content

Commit c556d34

Browse files
authored
Forcing HTTPS instead of HTTP for ngrok
For security reason.
1 parent ac08562 commit c556d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ngrok.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def connect(token, port, region):
88
auth_token=token, region=region
99
)
1010
try:
11-
public_url = ngrok.connect(port, pyngrok_config=config).public_url
11+
public_url = ngrok.connect(port, pyngrok_config=config, bind_tls=True).public_url
1212
except exception.PyngrokNgrokError:
1313
print(f'Invalid ngrok authtoken, ngrok connection aborted.\n'
1414
f'Your token: {token}, get the right one on https://dashboard.ngrok.com/get-started/your-authtoken')

0 commit comments

Comments
 (0)