From 9cb7ffa43a1825378463366f7979763f3c8c943d 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: Tue, 26 May 2026 22:51:03 +0300 Subject: [PATCH] fix: apply SOCKS port when warp-cli already present Co-authored-by: Cursor --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 19e8f1d..a21ce83 100755 --- a/install.sh +++ b/install.sh @@ -94,6 +94,11 @@ sed \ -e "s|@ENV_FILE@|${ENV_FILE}|g" \ "${REPO_DIR}/systemd/warp-webui.service" > "${UNIT_DST}" +if command -v warp-cli >/dev/null 2>&1; then + warp-cli --accept-tos mode proxy 2>/dev/null || true + warp-cli --accept-tos proxy port "${WARP_PROXY_PORT}" 2>/dev/null || true +fi + systemctl daemon-reload systemctl enable "${SERVICE_NAME}.service" systemctl restart "${SERVICE_NAME}.service"