diff --git a/_worker.js b/_worker.js index b632152..cee5c79 100644 --- a/_worker.js +++ b/_worker.js @@ -62,7 +62,7 @@ export default { const userIDs = await 生成动态UUID(动态UUID); userID = userIDs[0]; userIDLow = userIDs[1]; - } + } else 动态UUID = userID; if (!userID) { return new Response('请设置你的UUID变量,或尝试重试部署,检查变量是否生效?', { @@ -159,10 +159,10 @@ export default { if (路径 == '/') { if (env.URL302) return Response.redirect(env.URL302, 302); else if (env.URL) return await 代理URL(env.URL, url); - else return new Response(JSON.stringify(request.cf, null, 4), { + else return new Response(await nginx(), { status: 200, headers: { - 'content-type': 'application/json', + 'Content-Type': 'text/html; charset=UTF-8', }, }); } else if (路径 == `/${fakeUserID}`) { @@ -2605,6 +2605,9 @@ async function bestIP(request, env, txt = 'ADD.txt') { } else if (ipSource === 'as24429') { // AS24429列表 response = await fetch('https://raw.githubusercontent.com/ipverse/asn-ip/master/as/24429/ipv4-aggregated.txt'); + } else if (ipSource === 'as35916') { + // AS35916列表 + response = await fetch('https://raw.githubusercontent.com/ipverse/asn-ip/master/as/35916/ipv4-aggregated.txt'); } else if (ipSource === 'as199524') { // AS199524列表 response = await fetch('https://raw.githubusercontent.com/ipverse/asn-ip/master/as/199524/ipv4-aggregated.txt'); @@ -3322,6 +3325,7 @@ async function bestIP(request, env, txt = 'ADD.txt') { + @@ -3829,8 +3833,11 @@ async function bestIP(request, env, txt = 'ADD.txt') { case 'as13335': ipSourceName = 'CF全段'; break; + case 'as35916': + ipSourceName = 'CF非官方1'; + break; case 'as209242': - ipSourceName = 'CF非官方'; + ipSourceName = 'CF非官方2'; break; case 'as24429': ipSourceName = 'Alibaba'; @@ -4169,4 +4176,35 @@ async function getUsage(accountId, email, apikey, all = 100000) { // 发生错误时返回默认值 return [all, 0, 0, 0]; } +} + +async function nginx() { + const text = ` + + + + Welcome to nginx! + + + +

Welcome to nginx!

+

If you see this page, the nginx web server is successfully installed and + working. Further configuration is required.

+ +

For online documentation and support please refer to + nginx.org.
+ Commercial support is available at + nginx.com.

+ +

Thank you for using nginx.

+ + + ` + return text; } \ No newline at end of file diff --git a/wrangler.toml b/wrangler.toml index 2fc3328..c7a1b63 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,4 +1,4 @@ -name = "v20250718" +name = "v20250719" main = "_worker.js" -compatibility_date = "2025-07-18" +compatibility_date = "2025-07-19" keep_vars = true \ No newline at end of file