Describe the Bug
Creating a tunnel with option bind_tls enabled returns an http URL instead of an https URL
Steps to Reproduce
from pyngrok import ngrok
# Open an HTTPs tunnel on port 5000 for http://localhost:5000
public_url = ngrok.connect(port="5000", proto="http", options={"bind_tls": True})
print(public_url)
Describe the Bug Creating a tunnel with option
bind_tls
enabled returns an http URL instead of an https URLSteps to Reproduce
Output: http://abc.ngrok.io
Expected Behavior https://abc.ngrok.io
Environment PYNGROK VERSION: 4.1.9 VERSION: 2.3.35
Env: https://colab.research.google.com/
Additional Context current mitigation:
print(public_url.replace("http:", "https:"))
and thank you for this nice and handy library! 🙏
Update: Bug fix PR: https://github.com/alexdlaird/pyngrok/pull/63