From fde7b9b8975839926aea356e0ca95fb88f87e674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=91=D0=BE=D0=B1?= =?UTF-8?q?=D1=8B=D1=80=D0=B5=D0=B2?= Date: Mon, 1 Jun 2026 00:48:08 +0300 Subject: [PATCH] fix: restore short router install command --- app.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app.py b/app.py index 3db5039..f3dd01c 100644 --- a/app.py +++ b/app.py @@ -1615,15 +1615,7 @@ def panel_port(): def install_command(token, port=None): port = port or panel_port() - urls = [f"http://{SERVER_IP}:{port}/init/{token}.sh", f"http://{SERVER_IP}/init/{token}.sh"] - return ("tmp=/tmp/phobos-init-$$.sh; ok=0; " - f"for u in {' '.join(urls)}; do " - "rm -f $tmp; " - "(wget -q -O $tmp $u || curl -fsSL -o $tmp $u) 2>/dev/null || continue; " - "grep -qi '")