From 52d6522989d746fcc2206dae1bddd4dfb871dd54 Mon Sep 17 00:00:00 2001 From: linuztx Date: Sun, 8 Jun 2025 19:20:17 +0800 Subject: [PATCH] feat(api): handle tunnel provider in tunnel api --- python/api/tunnel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/api/tunnel.py b/python/api/tunnel.py index 62f95f2f0..8279330f1 100644 --- a/python/api/tunnel.py +++ b/python/api/tunnel.py @@ -14,7 +14,8 @@ class Tunnel(ApiHandler): if action == "create": port = runtime.get_web_ui_port() - tunnel_url = tunnel_manager.start_tunnel(port) + provider = input.get("provider", "serveo") # Default to serveo + tunnel_url = tunnel_manager.start_tunnel(port, provider) if tunnel_url is None: # Add a little delay and check again - tunnel might be starting import time