mirror of
https://gitlab.com/SukkaW/ruleset.skk.moe.git
synced 2026-04-18 17:54:26 +00:00
deploy: 908a7ffe901b1fb0a7f5c6063fb44018b74132f4
This commit is contained in:
24
Build/build-telegram-cidr.js
Normal file
24
Build/build-telegram-cidr.js
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
const { fetch } = require('undici');
|
||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
const resp = await fetch('https://core.telegram.org/resources/cidr.txt');
|
||||||
|
const lastModified = new Date(resp.headers.get('last-modified'));
|
||||||
|
|
||||||
|
const res = (await resp.text())
|
||||||
|
.split('\n')
|
||||||
|
.filter(line => line.trim() !== '');
|
||||||
|
|
||||||
|
await fs.promises.writeFile(
|
||||||
|
path.resolve(__dirname, '../List/ip/telegram.conf'),
|
||||||
|
'# Telegram CIDR (https://core.telegram.org/resources/cidr.txt)' + '\n' +
|
||||||
|
'# Last Updated: ' + lastModified.toISOString() + '\n' +
|
||||||
|
res.map(ip => {
|
||||||
|
return ip.includes(':')
|
||||||
|
? `IP-CIDR6,${ip},no-resolve`
|
||||||
|
: `IP-CIDR,${ip},no-resolve`;
|
||||||
|
}).join('\n') + '\n',
|
||||||
|
'utf-8'
|
||||||
|
);
|
||||||
|
})();
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
############################
|
############################
|
||||||
# Mainland China IPv4 CIDR
|
# Mainland China IPv4 CIDR
|
||||||
# Data from misaka.io (misakaio @ GitHub)
|
# Data from misaka.io (misakaio @ GitHub)
|
||||||
# Last Updated: 2022-04-23T12:32:43.298Z
|
# Last Updated: 2022-04-23T13:40:30.677Z
|
||||||
# Routes: 3378
|
# Routes: 3378
|
||||||
############################
|
############################
|
||||||
IP-CIDR,1.2.4.0/24
|
IP-CIDR,1.2.4.0/24
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
# > Telegram
|
# Telegram CIDR (https://core.telegram.org/resources/cidr.txt)
|
||||||
IP-CIDR,91.105.192.0/23,no-resolve
|
# Last Updated: 2021-10-01T16:51:55.000Z
|
||||||
IP-CIDR,91.108.0.0/16,no-resolve
|
IP-CIDR,91.108.56.0/22,no-resolve
|
||||||
IP-CIDR,95.161.64.0/20,no-resolve
|
IP-CIDR,91.108.4.0/22,no-resolve
|
||||||
IP-CIDR,109.239.140.0/24,no-resolve
|
IP-CIDR,91.108.8.0/22,no-resolve
|
||||||
|
IP-CIDR,91.108.16.0/22,no-resolve
|
||||||
|
IP-CIDR,91.108.12.0/22,no-resolve
|
||||||
IP-CIDR,149.154.160.0/20,no-resolve
|
IP-CIDR,149.154.160.0/20,no-resolve
|
||||||
|
IP-CIDR,91.105.192.0/23,no-resolve
|
||||||
|
IP-CIDR,91.108.20.0/22,no-resolve
|
||||||
IP-CIDR,185.76.151.0/24,no-resolve
|
IP-CIDR,185.76.151.0/24,no-resolve
|
||||||
IP-CIDR,214.218.41.9/32,no-resolve
|
|
||||||
IP-CIDR6,2001:67c:4e8::/48,no-resolve
|
|
||||||
IP-CIDR6,2001:b28:f23c::/48,no-resolve
|
|
||||||
IP-CIDR6,2001:b28:f23d::/48,no-resolve
|
IP-CIDR6,2001:b28:f23d::/48,no-resolve
|
||||||
IP-CIDR6,2001:b28:f23f::/48,no-resolve
|
IP-CIDR6,2001:b28:f23f::/48,no-resolve
|
||||||
IP-CIDR6,2a0a:f280:203::/48,no-resolve
|
IP-CIDR6,2001:67c:4e8::/48,no-resolve
|
||||||
|
IP-CIDR6,2001:b28:f23c::/48,no-resolve
|
||||||
|
IP-CIDR6,2a0a:f280::/32,no-resolve
|
||||||
|
|||||||
@@ -7,3 +7,4 @@ DOMAIN-SUFFIX,telegram.me
|
|||||||
DOMAIN-SUFFIX,telegram.org
|
DOMAIN-SUFFIX,telegram.org
|
||||||
DOMAIN-SUFFIX,graph.org
|
DOMAIN-SUFFIX,graph.org
|
||||||
DOMAIN-SUFFIX,legra.ph
|
DOMAIN-SUFFIX,legra.ph
|
||||||
|
DOMAIN-SUFFIX,telesco.pe
|
||||||
|
|||||||
@@ -67,7 +67,8 @@ RULE-SET,https://ruleset.skk.moe/List/non_ip/telegram.conf,[Replace with your po
|
|||||||
RULE-SET,https://ruleset.skk.moe/List/ip/telegram.conf,[Replace with your policy]
|
RULE-SET,https://ruleset.skk.moe/List/ip/telegram.conf,[Replace with your policy]
|
||||||
```
|
```
|
||||||
|
|
||||||
- 人工维护
|
- 域名规则 人工维护
|
||||||
|
- IP CIDR 规则 自动生成
|
||||||
|
|
||||||
#### Apple CDN
|
#### Apple CDN
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<main class="container">
|
<main class="container">
|
||||||
<h1>Sukka Surge Ruleset Server</h1>
|
<h1>Sukka Surge Ruleset Server</h1>
|
||||||
<p>Made by <a href="https://skk.moe">Sukka</a> | <a href="https://github.com/SukkaW/Surge/">Source @ GitHub</a> | Licensed under <a href="https://github.com/SukkaW/Surge/blob/master/LICENSE" target="_blank">AGPL-3.0</a></p>
|
<p>Made by <a href="https://skk.moe">Sukka</a> | <a href="https://github.com/SukkaW/Surge/">Source @ GitHub</a> | Licensed under <a href="https://github.com/SukkaW/Surge/blob/master/LICENSE" target="_blank">AGPL-3.0</a></p>
|
||||||
<p>Last Updated: 2022-04-23T12:34:29.615Z</p>
|
<p>Last Updated: 2022-04-23T13:42:42.158Z</p>
|
||||||
<hr>
|
<hr>
|
||||||
<br>
|
<br>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user