From a954b3e7deece2b108aac6182a612a3645f26744 Mon Sep 17 00:00:00 2001 From: ausboss <102309304+ausboss@users.noreply.github.com> Date: Thu, 17 Aug 2023 13:20:36 -0500 Subject: [PATCH] fixes error when not specifying tunnel id (#3606) --- extensions/api/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/api/util.py b/extensions/api/util.py index 0db1c46c..032a9e5c 100644 --- a/extensions/api/util.py +++ b/extensions/api/util.py @@ -99,7 +99,10 @@ def _start_cloudflared(port: int, tunnel_id: str, max_attempts: int = 3, on_star for _ in range(max_attempts): try: - public_url = _run_cloudflared(port, port + 1, tunnel_id=tunnel_id) + if tunnel_id is not None: + public_url = _run_cloudflared(port, port + 1, tunnel_id=tunnel_id) + else: + public_url = _run_cloudflared(port, port + 1) if on_start: on_start(public_url)