From cfebcf4f0e3ec97dec28f0e01ddfb4e3f4c33634 Mon Sep 17 00:00:00 2001 From: sans Date: Sun, 19 Jul 2026 01:41:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=87=8C=E7=9A=84=20base=5Fu?= =?UTF-8?q?rl=20=E4=BB=A3=E6=9B=BF=20request.base=5Furl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/routers/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routers/admin.py b/backend/routers/admin.py index 75050ef..95c3266 100644 --- a/backend/routers/admin.py +++ b/backend/routers/admin.py @@ -670,7 +670,7 @@ async def admin_setup_script( from urllib.parse import quote settings = get_settings() - base_url = str(request.base_url).rstrip("/") + base_url = settings.base_url.rstrip("/") ext = "ps1" if os == "windows" else "sh" download_url = f"{base_url}/admin/api/script/download?domain={quote(domain)}&server_name={quote(server_name)}&os={os}"