浏览代码

Add Huize Tel ASN

SukkaW 1 年之前
父节点
当前提交
60976b1e6b
共有 2 个文件被更改,包括 17 次插入3 次删除
  1. 4 2
      Build/build-reject-ip-list.ts
  2. 13 1
      Source/ip/badboy_asn.ts

+ 4 - 2
Build/build-reject-ip-list.ts

@@ -8,7 +8,7 @@ import { OUTPUT_INTERNAL_DIR, SOURCE_DIR } from './constants/dir';
 import { $$fetch } from './lib/fetch-retry';
 import { fetchAssets } from './lib/fetch-assets';
 import { fastIpVersion } from './lib/misc';
-import { AUGUST_ASN } from '../Source/ip/august';
+import { AUGUST_ASN, HUIZE_ASN } from '../Source/ip/badboy_asn';
 
 const BOGUS_NXDOMAIN_URL = 'https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/bogus-nxdomain.china.conf';
 const getBogusNxDomainIPsPromise: Promise<[ipv4: string[], ipv6: string[]]> = $$fetch(BOGUS_NXDOMAIN_URL).then(async (resp) => {
@@ -74,7 +74,9 @@ export const buildRejectIPList = task(require.main === module, __filename)(async
       .bulkAddCIDR4NoResolve(botNetIPs[0])
       .bulkAddCIDR6NoResolve(botNetIPs[1])
       .bulkAddIPASN(AUGUST_ASN)
+      .bulkAddIPASN(HUIZE_ASN)
       .write(),
-    compareAndWriteFile(span, [AUGUST_ASN.join(' ')], path.join(OUTPUT_INTERNAL_DIR, 'august_asn.txt'))
+    compareAndWriteFile(span, [AUGUST_ASN.join(' ')], path.join(OUTPUT_INTERNAL_DIR, 'august_asn.txt')),
+    compareAndWriteFile(span, [HUIZE_ASN.join(' ')], path.join(OUTPUT_INTERNAL_DIR, 'huize_asn.txt'))
   ]);
 });

+ 13 - 1
Source/ip/august.ts → Source/ip/badboy_asn.ts

@@ -11,5 +11,17 @@ export const AUGUST_ASN = [
   '18044', // only upstream is AS945
   '62489', // only upstream is AS945 and AS1012
   '5111', // exists in AS-WAKUWAKU
-  '14651' // only upstream is AS945
+  '14651', // only upstream is AS945
+
+  '7480' // Friend of August, stealing others' XC at STUIX
+];
+
+export const HUIZE_ASN = [
+  '61302',
+  '44324', // MoeDove
+  '53808', // MoeDove
+  '60539',
+  '60842',
+  '140915',
+  '40115' // MoeDove
 ];