mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 09:10:35 +08:00
Update Proxy / CDN / Download Hosts
Chore: minor infra changes Update CDN Hosts
This commit is contained in:
parent
7f6e631847
commit
855e1bf69b
@ -9,7 +9,7 @@ export function appendArrayInPlace<T>(dest: T[], source: T[]) {
|
|||||||
dest.push.apply(dest, source);
|
dest.push.apply(dest, source);
|
||||||
} else {
|
} else {
|
||||||
while (itemsLeft > 0) {
|
while (itemsLeft > 0) {
|
||||||
const pushCount = Math.min(MAX_BLOCK_SIZE, itemsLeft);
|
const pushCount = itemsLeft > MAX_BLOCK_SIZE ? MAX_BLOCK_SIZE : itemsLeft;
|
||||||
const subSource = source.slice(offset, offset + pushCount);
|
const subSource = source.slice(offset, offset + pushCount);
|
||||||
// eslint-disable-next-line prefer-spread -- performance
|
// eslint-disable-next-line prefer-spread -- performance
|
||||||
dest.push.apply(dest, subSource);
|
dest.push.apply(dest, subSource);
|
||||||
|
|||||||
@ -7,11 +7,8 @@ import fsp from 'fs/promises';
|
|||||||
const file = path.resolve(__dirname, '../../Source/domainset/cdn.conf');
|
const file = path.resolve(__dirname, '../../Source/domainset/cdn.conf');
|
||||||
|
|
||||||
group('read file by line', () => {
|
group('read file by line', () => {
|
||||||
bench('readline', () => processLineFromReadline(readFileByLine(file)));
|
bench('readFileByLine', () => processLineFromReadline(readFileByLine(file)));
|
||||||
|
|
||||||
bench('fsp.readFile', () => fsp.readFile(file, 'utf-8').then((content) => content.split('\n').filter(processLine)));
|
bench('fsp.readFile', () => fsp.readFile(file, 'utf-8').then((content) => content.split('\n').filter(processLine)));
|
||||||
|
|
||||||
bench('Bun.file', () => Bun.file(file).text().then((content) => content.split('\n').filter(processLine)));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
run();
|
run();
|
||||||
|
|||||||
@ -11,6 +11,7 @@ hv-monsterdb-data.skk.moe
|
|||||||
ohttp-relay1.fastly-edge.com
|
ohttp-relay1.fastly-edge.com
|
||||||
google-ohttp-relay-safebrowsing.fastly-edge.com
|
google-ohttp-relay-safebrowsing.fastly-edge.com
|
||||||
.privacy-gateway.cloudflare.com
|
.privacy-gateway.cloudflare.com
|
||||||
|
.proxy.safebrowsing.apple
|
||||||
|
|
||||||
# >> Open Source CDN
|
# >> Open Source CDN
|
||||||
.jsdelivr.net
|
.jsdelivr.net
|
||||||
@ -467,14 +468,6 @@ amp.azure.net
|
|||||||
# Minecraft
|
# Minecraft
|
||||||
launchercontent.mojang.com
|
launchercontent.mojang.com
|
||||||
|
|
||||||
# >> File Pastebin / File Share
|
|
||||||
.catbox.moe
|
|
||||||
share.riseup.net
|
|
||||||
.file.io
|
|
||||||
.tmpfiles.org
|
|
||||||
.filebin.net
|
|
||||||
.temp.sh
|
|
||||||
|
|
||||||
# >> CodeSandbox
|
# >> CodeSandbox
|
||||||
uploads.codesandbox.io
|
uploads.codesandbox.io
|
||||||
screenshots.codesandbox.io
|
screenshots.codesandbox.io
|
||||||
@ -1301,6 +1294,7 @@ steamcdn-a.akamaihd.net
|
|||||||
.ibytedtos.com
|
.ibytedtos.com
|
||||||
.bytedapm.com
|
.bytedapm.com
|
||||||
.ttwstatic.com
|
.ttwstatic.com
|
||||||
|
sf-coze-web-cdn.coze.com
|
||||||
# eBay
|
# eBay
|
||||||
.ebayimg.com
|
.ebayimg.com
|
||||||
.ebaystatic.com
|
.ebaystatic.com
|
||||||
@ -2668,3 +2662,4 @@ static.mytonwallet.io
|
|||||||
cdn.joincommunity.xyz
|
cdn.joincommunity.xyz
|
||||||
statics.goorm.io
|
statics.goorm.io
|
||||||
.replicate.delivery
|
.replicate.delivery
|
||||||
|
assets.garr.it
|
||||||
|
|||||||
@ -159,6 +159,14 @@ edgedl.me.gvt3.com
|
|||||||
edgedl.me.gvt4.com
|
edgedl.me.gvt4.com
|
||||||
edgedl.me.gvt5.com
|
edgedl.me.gvt5.com
|
||||||
|
|
||||||
|
# >> File Pastebin / File Share
|
||||||
|
.catbox.moe
|
||||||
|
share.riseup.net
|
||||||
|
.file.io
|
||||||
|
.tmpfiles.org
|
||||||
|
.filebin.net
|
||||||
|
.temp.sh
|
||||||
|
|
||||||
# >> Software Download/Updating
|
# >> Software Download/Updating
|
||||||
# 1Password
|
# 1Password
|
||||||
cache.agilebits.com
|
cache.agilebits.com
|
||||||
@ -188,6 +196,7 @@ dl.iina.io
|
|||||||
downloads.sourceforge.net
|
downloads.sourceforge.net
|
||||||
.dl.sourceforge.net
|
.dl.sourceforge.net
|
||||||
# Snipaste
|
# Snipaste
|
||||||
|
stats.snipaste.com
|
||||||
dl.snipaste.com
|
dl.snipaste.com
|
||||||
download.snipaste.com
|
download.snipaste.com
|
||||||
# Atlassian
|
# Atlassian
|
||||||
@ -318,5 +327,9 @@ mirror.ghproxy.com
|
|||||||
.releases.hashicorp.com
|
.releases.hashicorp.com
|
||||||
# Homebrew
|
# Homebrew
|
||||||
formulae.brew.sh
|
formulae.brew.sh
|
||||||
|
# GitHub
|
||||||
|
codeload.github.com
|
||||||
|
objects.githubusercontent.com
|
||||||
|
pkg-containers.githubusercontent.com
|
||||||
# Misc
|
# Misc
|
||||||
ciscobinary.openh264.org
|
ciscobinary.openh264.org
|
||||||
|
|||||||
@ -811,7 +811,6 @@ analytics.infomaniak.com
|
|||||||
.prtrackings.com
|
.prtrackings.com
|
||||||
p.cloudcraft.co
|
p.cloudcraft.co
|
||||||
collect.foresightnews.pro
|
collect.foresightnews.pro
|
||||||
stats.snipaste.com
|
|
||||||
.plausible.cyberciti.com
|
.plausible.cyberciti.com
|
||||||
umami.rss3.io
|
umami.rss3.io
|
||||||
.try-snowplow.com
|
.try-snowplow.com
|
||||||
|
|||||||
@ -312,6 +312,7 @@ DOMAIN-SUFFIX,akamai.net
|
|||||||
DOMAIN-SUFFIX,akamaihd.net
|
DOMAIN-SUFFIX,akamaihd.net
|
||||||
DOMAIN-SUFFIX,amazon.com
|
DOMAIN-SUFFIX,amazon.com
|
||||||
DOMAIN-SUFFIX,amazon.co.jp
|
DOMAIN-SUFFIX,amazon.co.jp
|
||||||
|
DOMAIN-SUFFIX,amazonaws.com
|
||||||
DOMAIN-SUFFIX,apibay.org
|
DOMAIN-SUFFIX,apibay.org
|
||||||
DOMAIN-SUFFIX,apk-dl.com
|
DOMAIN-SUFFIX,apk-dl.com
|
||||||
DOMAIN-SUFFIX,apkmirror.com
|
DOMAIN-SUFFIX,apkmirror.com
|
||||||
@ -443,6 +444,7 @@ DOMAIN-SUFFIX,jirachecklist.com
|
|||||||
DOMAIN-SUFFIX,jkforum.net
|
DOMAIN-SUFFIX,jkforum.net
|
||||||
DOMAIN-SUFFIX,jsdelivr.com
|
DOMAIN-SUFFIX,jsdelivr.com
|
||||||
DOMAIN-SUFFIX,jsdelivr.net
|
DOMAIN-SUFFIX,jsdelivr.net
|
||||||
|
DOMAIN-SUFFIX,jumpdesktop.com
|
||||||
DOMAIN-SUFFIX,kagi.com
|
DOMAIN-SUFFIX,kagi.com
|
||||||
DOMAIN-SUFFIX,kakao.com
|
DOMAIN-SUFFIX,kakao.com
|
||||||
DOMAIN-SUFFIX,kik.com
|
DOMAIN-SUFFIX,kik.com
|
||||||
@ -558,6 +560,7 @@ DOMAIN-SUFFIX,surfshark.com
|
|||||||
DOMAIN-SUFFIX,t66y.com
|
DOMAIN-SUFFIX,t66y.com
|
||||||
DOMAIN-SUFFIX,tenor.com
|
DOMAIN-SUFFIX,tenor.com
|
||||||
DOMAIN-SUFFIX,textnow.me
|
DOMAIN-SUFFIX,textnow.me
|
||||||
|
DOMAIN-SUFFIX,termius.com
|
||||||
DOMAIN-SUFFIX,tgstat.ru
|
DOMAIN-SUFFIX,tgstat.ru
|
||||||
DOMAIN-SUFFIX,theinitium.com
|
DOMAIN-SUFFIX,theinitium.com
|
||||||
DOMAIN-SUFFIX,themoviedb.org
|
DOMAIN-SUFFIX,themoviedb.org
|
||||||
|
|||||||
@ -27,41 +27,6 @@ DOMAIN,npm.im
|
|||||||
DOMAIN,npm.io
|
DOMAIN,npm.io
|
||||||
# SKK.MOE
|
# SKK.MOE
|
||||||
DOMAIN,hv-monster-submit.skk.moe
|
DOMAIN,hv-monster-submit.skk.moe
|
||||||
# GitHub
|
|
||||||
DOMAIN-SUFFIX,github.io
|
|
||||||
DOMAIN-SUFFIX,githubusercontent.com
|
|
||||||
DOMAIN-SUFFIX,githubassets.com
|
|
||||||
DOMAIN-SUFFIX,formulae.brew.sh
|
|
||||||
DOMAIN-SUFFIX,ghcr.io
|
|
||||||
# Netlify
|
|
||||||
DOMAIN-SUFFIX,netlify.app
|
|
||||||
# Vercel
|
|
||||||
DOMAIN-SUFFIX,vercel.app
|
|
||||||
# Sketch
|
|
||||||
DOMAIN,cdn.sketch.com
|
|
||||||
DOMAIN,resources-live.sketch.cloud
|
|
||||||
DOMAIN,resources-cache.prod.sketch.com
|
|
||||||
DOMAIN,prego-cache.prod.sketch.com
|
|
||||||
# Microsoft
|
|
||||||
DOMAIN-SUFFIX,download.prss.microsoft.com
|
|
||||||
# VSCode
|
# VSCode
|
||||||
DOMAIN,default.exp-tas.com
|
DOMAIN,default.exp-tas.com
|
||||||
DOMAIN,vscode-sync.trafficmanager.net
|
DOMAIN,vscode-sync.trafficmanager.net
|
||||||
DOMAIN,update.code.visualstudio.com
|
|
||||||
# Gravatar
|
|
||||||
DOMAIN-SUFFIX,gravatar.com
|
|
||||||
# Misc
|
|
||||||
DOMAIN,api.wakatime.com
|
|
||||||
DOMAIN-SUFFIX,cloudfront.net
|
|
||||||
DOMAIN-SUFFIX,adtidy.org
|
|
||||||
# Rust
|
|
||||||
DOMAIN-SUFFIX,crates.io
|
|
||||||
# Firefox
|
|
||||||
DOMAIN,detectportal.firefox.com
|
|
||||||
# Safari
|
|
||||||
DOMAIN,proxy.safebrowsing.apple
|
|
||||||
# SetApp
|
|
||||||
DOMAIN,store.setapp.com
|
|
||||||
# Files
|
|
||||||
DOMAIN-SUFFIX,catbox.moe
|
|
||||||
DOMAIN-SUFFIX,temp.sh
|
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
# $ meta_title Sukka's Ruleset - Proxy
|
# $ meta_title Sukka's Ruleset - Proxy
|
||||||
|
|
||||||
|
DOMAIN-SUFFIX,ip.sb
|
||||||
|
DOMAIN-SUFFIX,ip-api.com
|
||||||
|
|
||||||
DOMAIN-SUFFIX,mikuclub.xyz
|
DOMAIN-SUFFIX,mikuclub.xyz
|
||||||
DOMAIN-SUFFIX,mikuclub.cn
|
DOMAIN-SUFFIX,mikuclub.cn
|
||||||
DOMAIN-SUFFIX,fork.dev
|
DOMAIN-SUFFIX,fork.dev
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user