From 63f320fa6db0f600d36775f857a44d3ffbe3d6c1 Mon Sep 17 00:00:00 2001 From: luorijun Date: Sat, 1 Aug 2026 10:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E8=B6=B3=E5=88=86=E6=94=AF=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zed/settings.json | 2 +- src/app/(api)/proxies/route.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.zed/settings.json b/.zed/settings.json index 91d23ed..50c0520 100644 --- a/.zed/settings.json +++ b/.zed/settings.json @@ -3,7 +3,7 @@ // For a full list of overridable settings, and general information on folder-specific settings, // see the documentation: https://zed.dev/docs/configuring-zed#settings-files { - "language_servers": ["...", "!biome", "!typescript-language-server"], + "language_servers": ["!biome", "!oxfmt", "!oxlint", "!typescript-language-server", "..."], "formatter": { "code_action": "source.fixAll.eslint" } diff --git a/src/app/(api)/proxies/route.ts b/src/app/(api)/proxies/route.ts index 61eda1e..aed9509 100644 --- a/src/app/(api)/proxies/route.ts +++ b/src/app/(api)/proxies/route.ts @@ -47,6 +47,7 @@ export async function GET(req: NextRequest) { const separator = rSeparator.split(',').map(code => String.fromCharCode(parseInt(code))).join('') switch (format) { + case '2': case 'json': if (hostFormat === 'domain') { const domainFormatData = result.data.map(item => ({ @@ -64,7 +65,9 @@ export async function GET(req: NextRequest) { })) return NextResponse.json(ipFormatData) } + case '1': case 'text': + default: const text = result.data.map((item) => { let hostValue: string if (hostFormat === 'domain') {