mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-07 17:22:09 +00:00
feat(api): handle tunnel provider in tunnel api
This commit is contained in:
parent
73bdef208f
commit
52d6522989
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue