Skip to content

Commit c33b9a6

Browse files
Merge pull request #4583 from NoCrypt/patch-1
Forcing HTTPS instead of HTTP for ngrok
2 parents 506d529 + 6165f07 commit c33b9a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ngrok.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ def connect(token, port, region):
1515
)
1616
try:
1717
if account == None:
18-
public_url = ngrok.connect(port, pyngrok_config=config).public_url
18+
public_url = ngrok.connect(port, pyngrok_config=config, bind_tls=True).public_url
1919
else:
20-
public_url = ngrok.connect(port, pyngrok_config=config, auth=account).public_url
20+
public_url = ngrok.connect(port, pyngrok_config=config, bind_tls=True, auth=account).public_url
2121
except exception.PyngrokNgrokError:
2222
print(f'Invalid ngrok authtoken, ngrok connection aborted.\n'
2323
f'Your token: {token}, get the right one on https://dashboard.ngrok.com/get-started/your-authtoken')

0 commit comments

Comments
 (0)