Skip to content

Commit b5b9992

Browse files
authored
Merge pull request cmliu#904 from cmliu/beta2.0
Beta2.0
2 parents 333520b + 5850a87 commit b5b9992

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

_worker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export default {
335335
const cookies = request.headers.get('Cookie') || '';
336336
const authCookie = cookies.split(';').find(c => c.trim().startsWith('auth='))?.split('=')[1];
337337
if (authCookie && authCookie == await MD5MD5(UA + 加密秘钥 + 管理员密码)) return fetch(new Request('https://speed.cloudflare.com/locations', { headers: { 'Referer': 'https://speed.cloudflare.com/' } }));
338-
}
338+
} else if (访问路径 === 'robots.txt') return new Response('User-agent: *\nDisallow: /', { status: 200, headers: { 'Content-Type': 'text/plain; charset=UTF-8' } });
339339
} else if (!envUUID) return fetch(Pages静态页面 + '/noKV').then(r => { const headers = new Headers(r.headers); headers.set('Cache-Control', 'no-store, no-cache, must-revalidate, proxy-revalidate'); headers.set('Pragma', 'no-cache'); headers.set('Expires', '0'); return new Response(r.body, { status: 404, statusText: r.statusText, headers }); });
340340
} else if (管理员密码) {// ws代理
341341
await 反代参数获取(request);
@@ -839,7 +839,7 @@ function Singbox订阅配置文件热补丁(sb_json_text) {
839839
tag: tag,
840840
type: "remote",
841841
format: "binary",
842-
url: `https://github.cmliussss.net/https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-${name}.srs`,
842+
url: `https://gh.090227.xyz/https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-${name}.srs`,
843843
download_detour: "DIRECT"
844844
});
845845
}
@@ -857,7 +857,7 @@ function Singbox订阅配置文件热补丁(sb_json_text) {
857857
tag: tag,
858858
type: "remote",
859859
format: "binary",
860-
url: `https://github.cmliussss.net/https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-${name}.srs`,
860+
url: `https://gh.090227.xyz/https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-${name}.srs`,
861861
download_detour: "DIRECT"
862862
});
863863
}

0 commit comments

Comments
 (0)