aboutsummaryrefslogtreecommitdiff
path: root/modules/ngrok.py
diff options
context:
space:
mode:
authorzhaohu xing <32668889+920232796@users.noreply.github.com>2022-11-30 10:13:17 +0800
committerGitHub <noreply@github.com>2022-11-30 10:13:17 +0800
commit0831ab476c626eb796b609acf8771177692bfab7 (patch)
treeebae98ea40ecc5b34497424bee19310e9fac4068 /modules/ngrok.py
parentee3f5ea3eeb31f1ed72e2f0cbed2c00a782497d8 (diff)
parent4b3c5bc24bffdf429c463a465763b3077fe55eb8 (diff)
Merge branch 'master' into master
Diffstat (limited to 'modules/ngrok.py')
-rw-r--r--modules/ngrok.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ngrok.py b/modules/ngrok.py
index 10d2179f..64c9a3c2 100644
--- a/modules/ngrok.py
+++ b/modules/ngrok.py
@@ -15,9 +15,9 @@ def connect(token, port, region):
)
try:
if account == None:
- public_url = ngrok.connect(port, pyngrok_config=config).public_url
+ public_url = ngrok.connect(port, pyngrok_config=config, bind_tls=True).public_url
else:
- public_url = ngrok.connect(port, pyngrok_config=config, auth=account).public_url
+ public_url = ngrok.connect(port, pyngrok_config=config, bind_tls=True, auth=account).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')