New Domestic CDN Hosts Output Support

This commit is contained in:
SukkaW
2026-09-23 02:37:40 +08:00
parent 1baae2ff74
commit 8b5e39525b
7 changed files with 122 additions and 32 deletions

View File

@@ -188,7 +188,6 @@ export const DOMESTICS: Record<string, DNSMapping> = {
'+bilivideo.com',
'+bilivideo.cn',
'+bilivideo.net',
'+hdslb.com',
'+biliimg.com',
'+biliapi.com',
'+biliapi.net',

View File

@@ -0,0 +1,14 @@
# $ custom_build_script
# CDN domains of domestic services that should use DIRECT both in China and abroad.
# Match this ruleset before domestic when routing other domestic traffic back to China.
# The build script also includes these rules in the legacy domestic output.
# >> Bilibili
# Bilibili CDN
DOMAIN-SUFFIX,hdslb.com
# >> NetEase
# NetEase Music CDN
DOMAIN-SUFFIX,music.126.net

View File

@@ -0,0 +1,5 @@
import type { DNSMapping } from './direct';
// CDN domains of domestic services that should use DIRECT both in China and abroad.
// These domains are also included in the legacy domestic output by the build script.
export const DOMESTIC_CDN: Record<string, DNSMapping> = {};