SukkaW d354c5e988
Some checks are pending
Build / Build (push) Waiting to run
Build / Diff output (push) Blocked by required conditions
Build / Deploy to Cloudflare Pages (push) Blocked by required conditions
Build / Deploy to GitHub and GitLab (push) Blocked by required conditions
Chore: maintainance
2025-02-07 17:52:36 +08:00

92 lines
2.4 KiB
JavaScript

'use strict';Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});const cidr=require('../../_virtual/cidr.cjs');var hasRequiredCidr;
function requireCidr () {
if (hasRequiredCidr) return cidr.__exports;
hasRequiredCidr = 1;
(function (exports) {
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
CN_CIDR_MISSING_IN_CHNROUTE: function() {
return CN_CIDR_MISSING_IN_CHNROUTE;
},
NON_CN_CIDR_INCLUDED_IN_CHNROUTE: function() {
return NON_CN_CIDR_INCLUDED_IN_CHNROUTE;
},
RESERVED_IPV4_CIDR: function() {
return RESERVED_IPV4_CIDR;
}
});
const RESERVED_IPV4_CIDR = [
'0.0.0.0/8',
'10.0.0.0/8',
'100.64.0.0/10',
'127.0.0.0/8',
'169.254.0.0/16',
'172.16.0.0/12',
'192.0.0.0/24',
'192.0.2.0/24',
// 192.88.99.0 // is currently being broadcast by HE and Comcast
'192.168.0.0/16',
'198.18.0.0/15',
'198.51.100.0/24',
'203.0.113.0/24',
'224.0.0.0/4',
'233.252.0.0/24',
'240.0.0.0/4'
];
const NON_CN_CIDR_INCLUDED_IN_CHNROUTE = [
'223.118.0.0/15',
'223.120.0.0/15'
];
const CN_CIDR_MISSING_IN_CHNROUTE = [
// Baidu Public DNS
'180.76.76.0/24',
// Ali Public DNS
'223.5.5.0/24',
'223.6.6.0/24',
// Tencent DNSPod Public DNS
'119.29.29.0/24',
'119.28.28.0/24',
'120.53.53.0/24',
'1.12.12.0/24',
'1.12.34.0/24',
// ByteDance Public DNS
'180.184.1.0/24',
'180.184.2.0/24',
// 360 Public DNS
'101.198.198.0/24',
'101.198.199.0/24',
// ChinaTelecom
'103.7.141.0/24',
// Aliyun Shenzhen
'120.78.0.0/16',
// wy.com.cn
'211.99.96.0/19',
// AS58593, Azure China
'40.72.0.0/15',
'42.159.0.0/16',
'52.130.0.0/17',
'52.131.0.0/16',
'103.9.8.0/22',
'139.217.0.0/16',
'139.219.0.0/16',
'143.64.0.0/16',
'159.27.0.0/16',
'163.228.0.0/16',
// NetEase
'223.252.194.0/24',
'223.252.196.0/24',
// Xiamen Kuaikuai
'180.188.36.0/22' // no route globally
];
} (cidr.__exports));
return cidr.__exports;
}exports.__require=requireCidr;