Skip to content

Commit c2da4bf

Browse files
committed
Strip trailing slash on tunnel destination
1 parent 0cbe2f6 commit c2da4bf

File tree

1 file changed

+3
-0
lines changed
  • plain-tunnel/plain/tunnel

1 file changed

+3
-0
lines changed

plain-tunnel/plain/tunnel/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ def cli(destination, subdomain, tunnel_host, log_level):
2828
if not destination.startswith("http://") and not destination.startswith("https://"):
2929
destination = f"https://{destination}"
3030

31+
# Strip trailing slashes from the destination URL (maybe even enforce no path at all?)
32+
destination = destination.rstrip("/")
33+
3134
if not log_level:
3235
log_level = "INFO"
3336

0 commit comments

Comments
 (0)