Skip to content

Commit

Permalink
更新订阅链接并修复文件名处理
Browse files Browse the repository at this point in the history
  • Loading branch information
cmliu committed Jan 8, 2025
1 parent 6eb5a31 commit 49abe89
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ let timestamp = 4102329600000;//2099-12-31

//节点链接 + 订阅链接
let MainData = `
https://raw.githubusercontent.com/mahdibland/ShadowsocksAggregator/master/sub/splitted/trojan.txt
https://raw.githubusercontent.com/mfuu/v2ray/master/v2ray
https://raw.githubusercontent.com/peasoft/NoMoreWalls/master/list_raw.txt
https://raw.githubusercontent.com/ermaozi/get_subscribe/main/subscribe/v2ray.txt
https://raw.githubusercontent.com/aiboboxx/v2rayfree/main/v2
https://raw.githubusercontent.com/mahdibland/SSAggregator/master/sub/airport_sub_merge.txt
https://raw.githubusercontent.com/mahdibland/SSAggregator/master/sub/sub_merge.txt
https://raw.githubusercontent.com/Pawdroid/Free-servers/refs/heads/main/sub
`

let urls = [];
Expand Down Expand Up @@ -198,7 +203,7 @@ export default {
if (订阅格式 == 'clash') subConverterContent = await clashFix(subConverterContent);
return new Response(subConverterContent, {
headers: {
"Content-Disposition": `attachment; filename*=utf-8''${encodeURIComponent(FileName)}; filename=${FileName}`,
"Content-Disposition": `attachment; filename*=utf-8''${encodeURIComponent(FileName)}`,
"content-type": "text/plain; charset=utf-8",
"Profile-Update-Interval": `${SUBUpdateTime}`,
//"Subscription-Userinfo": `upload=${UD}; download=${UD}; total=${total}; expire=${expire}`,
Expand Down

0 comments on commit 49abe89

Please sign in to comment.