Skip to content

Commit 211d6e3

Browse files
committed
x
1 parent f91a17f commit 211d6e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/backend/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ def new_connector() -> str:
162162
cfg.data["TUNNEL_TOKEN"] = tunnel_token
163163
cfg.store()
164164
return warpcli.new_connector(tunnel_token)
165-
logger.info(f"Tunnel token form intertface <{tunnel_token}> ignored")
165+
else: logger.info(f"Tunnel token from intertface ignored (token={tunnel_token})")
166+
if (not cfg.data["TUNNEL_TOKEN"] is None) and \
167+
(not cfg.data["TUNNEL_TOKEN"] == ""):
168+
return warpcli.new_connector(cfg.data["TUNNEL_TOKEN"])
166169
return { "error" : "no tunnel token given" }
167170

168171
@app.get('/warp/registration/show')

0 commit comments

Comments
 (0)