Create subconverter
This commit is contained in:
parent
a4e8577f9f
commit
ae9c9d3cb2
222
subconverter/base/all_base.tpl
Normal file
222
subconverter/base/all_base.tpl
Normal file
@ -0,0 +1,222 @@
|
||||
{% if request.target == "clash" or request.target == "clashr" %}
|
||||
|
||||
port: {{ default(global.clash.http_port, "7890") }}
|
||||
socks-port: {{ default(global.clash.socks_port, "7891") }}
|
||||
allow-lan: {{ default(global.clash.allow_lan, "true") }}
|
||||
mode: Rule
|
||||
log-level: {{ default(global.clash.log_level, "info") }}
|
||||
external-controller: :9090
|
||||
{% if default(request.clash.dns, "") == "1" %}
|
||||
dns:
|
||||
enabled: true
|
||||
listen: 1053
|
||||
{% endif %}
|
||||
{% if local.clash.new_field_name == "true" %}
|
||||
proxies: ~
|
||||
proxy-groups: ~
|
||||
rules: ~
|
||||
{% else %}
|
||||
Proxy: ~
|
||||
Proxy Group: ~
|
||||
Rule: ~
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
{% if request.target == "surge" %}
|
||||
|
||||
[General]
|
||||
loglevel = notify
|
||||
bypass-system = true
|
||||
skip-proxy = 127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,100.64.0.0/10,localhost,*.local,e.crashlytics.com,captive.apple.com,::ffff:0:0:0:0/1,::ffff:128:0:0:0/1
|
||||
#DNS设置或根据自己网络情况进行相应设置
|
||||
bypass-tun = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12
|
||||
dns-server = 119.29.29.29,223.5.5.5
|
||||
|
||||
[Script]
|
||||
http-request https?:\/\/.*\.iqiyi\.com\/.*authcookie= script-path=https://raw.githubusercontent.com/NobyDa/Script/master/iQIYI-DailyBonus/iQIYI.js
|
||||
|
||||
{% endif %}
|
||||
{% if request.target == "loon" %}
|
||||
|
||||
[General]
|
||||
skip-proxy = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,e.crashlynatics.com
|
||||
bypass-tun = 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/24,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,255.255.255.255/32
|
||||
dns-server = system,119.29.29.29,223.5.5.5
|
||||
allow-udp-proxy = false
|
||||
host = 127.0.0.1
|
||||
|
||||
[Proxy]
|
||||
|
||||
[Remote Proxy]
|
||||
|
||||
[Proxy Group]
|
||||
|
||||
[Rule]
|
||||
|
||||
[Remote Rule]
|
||||
|
||||
[URL Rewrite]
|
||||
enable = true
|
||||
^https?:\/\/(www.)?(g|google)\.cn https://www.google.com 302
|
||||
|
||||
[Remote Rewrite]
|
||||
https://raw.githubusercontent.com/Loon0x00/LoonExampleConfig/master/Rewrite/AutoRewrite_Example.list,auto
|
||||
|
||||
[MITM]
|
||||
hostname = *.example.com,*.sample.com
|
||||
enable = true
|
||||
skip-server-cert-verify = true
|
||||
#ca-p12 =
|
||||
#ca-passphrase =
|
||||
|
||||
{% endif %}
|
||||
{% if request.target == "quan" %}
|
||||
|
||||
[SERVER]
|
||||
|
||||
[SOURCE]
|
||||
|
||||
[BACKUP-SERVER]
|
||||
|
||||
[SUSPEND-SSID]
|
||||
|
||||
[POLICY]
|
||||
|
||||
[DNS]
|
||||
1.1.1.1
|
||||
|
||||
[REWRITE]
|
||||
|
||||
[URL-REJECTION]
|
||||
|
||||
[TCP]
|
||||
|
||||
[GLOBAL]
|
||||
|
||||
[HOST]
|
||||
|
||||
[STATE]
|
||||
STATE,AUTO
|
||||
|
||||
[MITM]
|
||||
|
||||
{% endif %}
|
||||
{% if request.target == "quanx" %}
|
||||
|
||||
[general]
|
||||
excluded_routes=192.168.0.0/16, 172.16.0.0/12, 100.64.0.0/10, 10.0.0.0/8
|
||||
geo_location_checker=http://ip-api.com/json/?lang=zh-CN, https://github.com/KOP-XIAO/QuantumultX/raw/master/Scripts/IP_API.js
|
||||
network_check_url=http://www.baidu.com/
|
||||
server_check_url=http://www.gstatic.com/generate_204
|
||||
|
||||
[dns]
|
||||
server=119.29.29.29
|
||||
server=223.5.5.5
|
||||
server=1.0.0.1
|
||||
server=8.8.8.8
|
||||
|
||||
[policy]
|
||||
static=♻️ 自动选择, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Auto.png
|
||||
static=🔰 节点选择, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Proxy.png
|
||||
static=🌍 国外媒体, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/GlobalMedia.png
|
||||
static=🌏 国内媒体, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/DomesticMedia.png
|
||||
static=Ⓜ️ 微软服务, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Microsoft.png
|
||||
static=📲 电报信息, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Telegram.png
|
||||
static=🍎 苹果服务, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Apple.png
|
||||
static=🎯 全球直连, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Direct.png
|
||||
static=🛑 全球拦截, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Advertising.png
|
||||
static=🐟 漏网之鱼, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Final.png
|
||||
|
||||
[server_remote]
|
||||
|
||||
[filter_remote]
|
||||
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/General.conf, tag=DivineEngine Rewrite, update-interval=86400, opt-parser=false, enabled=true
|
||||
# https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/Advertising.conf, tag=DivineEngine (Advertising), enabled=true
|
||||
# https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/YouTubeAds.conf, tag=DivineEngine (Youtube AdsBlock), enabled=false
|
||||
# https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/Rewrite_lhie1.conf, tag=NoByDa(lhie1 Rewrite), enabled=true
|
||||
# https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/Js.conf, tag=NoByDa(NoByDa Rewrite), enabled=true
|
||||
# https://raw.githubusercontent.com/limbopro/Profiles/master/limbopro/Gift/Without/unzip/Js.conf, tag=NoByDa(unzip Rewrite), enabled=false
|
||||
# https://raw.githubusercontent.com/limbopro/Profiles/master/limbopro/Gift/Without/unzip/TikTok.conf, tag=TikTok ublock, enabled=false
|
||||
# https://raw.githubusercontent.com/ConnersHua/Profiles/master/Quantumult/X/Rewrite.conf, tag=ConnersHua (DivineEngine Rewrite), enabled=true
|
||||
|
||||
[server_local]
|
||||
|
||||
[filter_local]
|
||||
|
||||
[rewrite_local]
|
||||
|
||||
# 美区 tiktok(v14.7.0-v17.2.0)解锁
|
||||
|
||||
(.*video_id=\w{32})(.*watermark=)(.*) url 302 $1
|
||||
(?<=_region=)CN(?=&) url 307 UK
|
||||
(?<=&app_version=)1(6|7)..(?=.?.?&) url 307 1
|
||||
(?<=\?version_code=)1(6|7)..(?=.?.?&) url 307 1
|
||||
|
||||
[mitm]
|
||||
passphrase = FACD962E
|
||||
p12 = MIIKuwIBAzCCCoUGCSqGSIb3DQEHAaCCCnYEggpyMIIKbjCCBMcGCSqGSIb3DQEHBqCCBLgwggS0AgEAMIIErQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQI+pOFpzy+B0gCAggAgIIEgKrkjSxRyclI7J2fnQ2uPZyYteBdB3//4UzZhDi9BD8c9YXi+KA8lhsZMbSLzLxexBDU9Z3do0mlpo2ttoX732vIWTLVqa0/rqwak172aWu2GvALfcxELcP+uuqhRkI51Y1vln16ZhzkPiAcQtcHDvcz/y9cGFlQ/8uxX7AQraMJa3iAXoyiFe/TPhM0A69V+9/31niej4aCNrtuqNPdKGg/GXppW6ctu7uCl78deMEUk9fkUc6oQE3eTUllfR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KgOftFQnAECIZ5j4e/qks6
|
||||
|
||||
{% endif %}
|
||||
{% if request.target == "mellow" %}
|
||||
|
||||
[Endpoint]
|
||||
DIRECT, builtin, freedom, domainStrategy=UseIP
|
||||
REJECT, builtin, blackhole
|
||||
Dns-Out, builtin, dns
|
||||
|
||||
[Routing]
|
||||
domainStrategy = IPIfNonMatch
|
||||
|
||||
[Dns]
|
||||
hijack = Dns-Out
|
||||
clientIp = 114.114.114.114
|
||||
|
||||
[DnsServer]
|
||||
localhost
|
||||
223.5.5.5
|
||||
8.8.8.8, 53, Remote
|
||||
8.8.4.4
|
||||
|
||||
[DnsRule]
|
||||
DOMAIN-KEYWORD, geosite:geolocation-!cn, Remote
|
||||
DOMAIN-SUFFIX, google.com, Remote
|
||||
|
||||
[DnsHost]
|
||||
doubleclick.net = 127.0.0.1
|
||||
|
||||
[Log]
|
||||
loglevel = warning
|
||||
|
||||
{% endif %}
|
||||
{% if request.target == "surfboard" %}
|
||||
|
||||
[General]
|
||||
loglevel = notify
|
||||
interface = 127.0.0.1
|
||||
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local
|
||||
ipv6 = false
|
||||
dns-server = system, 223.5.5.5
|
||||
exclude-simple-hostnames = true
|
||||
enhanced-mode-by-rule = true
|
||||
{% endif %}
|
||||
{% if request.target == "sssub" %}
|
||||
{
|
||||
"route": "bypass-lan-china",
|
||||
"remote_dns": "dns.google",
|
||||
"ipv6": false,
|
||||
"metered": false,
|
||||
"proxy_apps": {
|
||||
"enabled": false,
|
||||
"bypass": true,
|
||||
"android_list": [
|
||||
"com.eg.android.AlipayGphone",
|
||||
"com.wudaokou.hippo",
|
||||
"com.zhihu.android"
|
||||
]
|
||||
},
|
||||
"udpdns": false
|
||||
}
|
||||
|
||||
{% endif %}
|
14
subconverter/docker-compose.yml
Normal file
14
subconverter/docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
version: "3"
|
||||
services:
|
||||
subconverter:
|
||||
image: stilleshan/subconverter
|
||||
container_name: subconverter
|
||||
ports:
|
||||
- 25500:25500
|
||||
volumes:
|
||||
- ./snippets/groups.txt:/base/snippets/groups.txt
|
||||
- ./snippets/rulesets.txt:/base/snippets/rulesets.txt
|
||||
- ./base/all_base.tpl:/base/base/all_base.tpl
|
||||
- ./pref.yml:/base/pref.yml
|
||||
restart: always
|
||||
|
144
subconverter/pref.yml
Normal file
144
subconverter/pref.yml
Normal file
@ -0,0 +1,144 @@
|
||||
common:
|
||||
api_mode: false
|
||||
api_access_token: password
|
||||
default_url: []
|
||||
enable_insert: true
|
||||
insert_url: []
|
||||
prepend_insert_url: true
|
||||
exclude_remarks: ["(到期|剩余流量|时间|官网|产品|平台)"]
|
||||
include_remarks: []
|
||||
enable_filter: false
|
||||
filter_script: ""
|
||||
default_external_config: "" # config/example_external_config.yml
|
||||
base_path: base
|
||||
clash_rule_base: base/all_base.tpl
|
||||
surge_rule_base: base/all_base.tpl
|
||||
surfboard_rule_base: base/all_base.tpl
|
||||
mellow_rule_base: base/all_base.tpl
|
||||
quan_rule_base: base/all_base.tpl
|
||||
quanx_rule_base: base/all_base.tpl
|
||||
loon_rule_base: base/all_base.tpl
|
||||
sssub_rule_base: base/all_base.tpl
|
||||
proxy_config: SYSTEM
|
||||
proxy_ruleset: SYSTEM
|
||||
proxy_subscription: NONE
|
||||
append_proxy_type: false
|
||||
|
||||
userinfo:
|
||||
stream_rule:
|
||||
- {match: "^剩余流量:(.*?)\\|总流量:(.*)$", replace: "total=$2&left=$1"}
|
||||
- {match: "^剩余流量:(.*?) (.*)$", replace: "total=$1&left=$2"}
|
||||
- {match: "^Bandwidth: (.*?)/(.*)$", replace: "used=$1&total=$2"}
|
||||
- {match: "^.*剩余(.*?)(?:\\s*?)@(?:.*)$", replace: "total=$1"}
|
||||
- {match: "^.*?流量:(.*?) 剩:(?:.*)$", replace: "total=$1"}
|
||||
time_rule:
|
||||
- {match: "^过期时间:(\\d+)-(\\d+)-(\\d+) (\\d+):(\\d+):(\\d+)$", replace: "$1:$2:$3:$4:$5:$6"}
|
||||
- {match: "^到期时间(:|:)(\\d+)-(\\d+)-(\\d+)$", replace: "$1:$2:$3:0:0:0"}
|
||||
- {match: "^Smart Access expire: (\\d+)/(\\d+)/(\\d+)$", replace: "$1:$2:$3:0:0:0"}
|
||||
- {match: "^.*?流量:(?:.*?) 剩:(.*?)天$", replace: "left=$1d"}
|
||||
|
||||
node_pref:
|
||||
# udp_flag: false
|
||||
# tcp_fast_open_flag: false
|
||||
# skip_cert_verify_flag: false
|
||||
# tls13_flag: false
|
||||
sort_flag: false
|
||||
sort_script: ""
|
||||
filter_deprecated_nodes: false
|
||||
append_sub_userinfo: true
|
||||
clash_use_new_field_name: true
|
||||
clash_proxies_style: flow
|
||||
rename_node:
|
||||
# - {match: "\\(?((x|X)?(\\d+)(\\.?\\d+)?)((\\s?倍率?)|(x|X))\\)?", replace: "$1x"}
|
||||
# - {script: "function rename(node){}"}
|
||||
# - {script: "path:/path/to/script.js"}
|
||||
- {import: snippets/rename_node.txt}
|
||||
|
||||
managed_config:
|
||||
write_managed_config: true
|
||||
managed_config_prefix: "http://127.0.0.1:25500"
|
||||
config_update_interval: 86400
|
||||
config_update_strict: false
|
||||
quanx_device_id: ""
|
||||
|
||||
surge_external_proxy:
|
||||
surge_ssr_path: "" # /usr/bin/ssr-local
|
||||
resolve_hostname: true
|
||||
|
||||
emojis:
|
||||
add_emoji: true
|
||||
remove_old_emoji: true
|
||||
rules:
|
||||
# - {match: "(流量|时间|应急)", emoji: "🏳️🌈"}
|
||||
# - {script: "function getEmoji(node){}"}
|
||||
# - {script: "path:/path/to/script.js"}
|
||||
- {import: snippets/emoji.txt}
|
||||
|
||||
rulesets:
|
||||
enabled: true
|
||||
overwrite_original_rules: false
|
||||
update_ruleset_on_request: false
|
||||
rulesets:
|
||||
# - {rule: "GEOIP,CN", group: "DIRECT"}
|
||||
# - {ruleset: "rules/LocalAreaNetwork.list", group: "DIRECT"}
|
||||
# - {ruleset: "surge:rules/LocalAreaNetwork.list", group: "DIRECT"}
|
||||
# - {ruleset: "quanx:https://raw.githubusercontent.com/ConnersHua/Profiles/master/Quantumult/X/Filter/Advertising.list", group: "Advertising", interval: 86400}
|
||||
# - {ruleset: "clash-domain:https://ruleset.dev/clash_domestic_services_domains", group: "Domestic Services", interval: 86400}
|
||||
# - {ruleset: "clash-ipcidr:https://ruleset.dev/clash_domestic_services_ips", group: "Domestic Services", interval: 86400}
|
||||
# - {ruleset: "clash-classic:https://raw.githubusercontent.com/DivineEngine/Profiles/master/Clash/RuleSet/China.yaml", group: "DIRECT", interval: 86400}
|
||||
- {import: snippets/rulesets.txt}
|
||||
|
||||
proxy_groups:
|
||||
custom_proxy_group:
|
||||
# - {name: UrlTest, type: url-test, rule: [".*"], url: http://www.gstatic.com/generate_204, interval: 300, tolerance: 100, timeout: 5}
|
||||
# - {name: Proxy, type: select, rule: [".*"]}
|
||||
# - {name: group1, type: select, rule: ["!!GROUPID=0"]}
|
||||
# - {name: v2ray, type: select, rule: ["!!GROUP=V2RayProvider"]}
|
||||
# - {import: snippets/groups_forcerule.txt}
|
||||
# - {name: ssid group, type: ssid, rule: ["default_group", "celluar=group0,ssid1=group1,ssid2=group2"]}
|
||||
- {import: snippets/groups.txt}
|
||||
|
||||
template:
|
||||
template_path: "templates"
|
||||
globals:
|
||||
- {key: clash.http_port, value: 7890}
|
||||
- {key: clash.socks_port, value: 7891}
|
||||
- {key: clash.allow_lan, value: true}
|
||||
- {key: clash.log_level, value: info}
|
||||
|
||||
aliases:
|
||||
- {uri: /v, target: /version}
|
||||
- {uri: /clash, target: "/sub?target=clash"}
|
||||
- {uri: /clashr, target: "/sub?target=clashr"}
|
||||
- {uri: /surge, target: "/sub?target=surge"}
|
||||
- {uri: /quan, target: "/sub?target=quan"}
|
||||
- {uri: /quanx, target: "/sub?target=quanx"}
|
||||
- {uri: /mellow, target: "/sub?target=mellow"}
|
||||
- {uri: /surfboard, target: "/sub?target=surfboard"}
|
||||
- {uri: /loon, target: "/sub?target=loon"}
|
||||
- {uri: /ss, target: "/sub?target=ss"}
|
||||
- {uri: /ssd, target: "/sub?target=ssd"}
|
||||
- {uri: /sssub, target: "/sub?target=sssub"}
|
||||
- {uri: /ssr, target: "/sub?target=ssr"}
|
||||
- {uri: /v2ray, target: "/sub?target=v2ray"}
|
||||
- {uri: /trojan, target: "/sub?target=trojan"}
|
||||
|
||||
server:
|
||||
listen: 0.0.0.0
|
||||
port: 25500
|
||||
serve_file_root: ""
|
||||
|
||||
advanced:
|
||||
log_level: info
|
||||
print_debug_info: false
|
||||
max_pending_connections: 10240
|
||||
max_concurrent_threads: 2
|
||||
max_allowed_rulesets: 0
|
||||
max_allowed_rules: 0
|
||||
max_allowed_download_size: 0
|
||||
enable_cache: false
|
||||
cache_subscription: 60
|
||||
cache_config: 300
|
||||
cache_ruleset: 21600
|
||||
async_fetch_ruleset: false
|
||||
skip_failed_links: false
|
12
subconverter/snippets/groups.txt
Normal file
12
subconverter/snippets/groups.txt
Normal file
@ -0,0 +1,12 @@
|
||||
🔰 PROXY`select`[]🎯 DIRECT`.*
|
||||
🎬 Media`select`(香港|HK|hk|🇭🇰|台湾|TW|tw|新加坡|SG|sg|🇸🇬)
|
||||
▶️ YouTube`select`[]🔰 PROXY`[]🎬 Media`.*
|
||||
🍿 NETFLIX`select`[]🔰 PROXY`[]🎬 Media`.*
|
||||
🐰 DisneyPlus`select`[]🔰 PROXY`[]🎬 Media`.*
|
||||
📺 AppleTV`select`[]🔰 PROXY`[]🎬 Media`.*
|
||||
🍎 Apple`select`[]🎯 DIRECT`[]🔰 PROXY`.*
|
||||
Ⓜ️ Microsoft`select`[]🎯 DIRECT`[]🔰 PROXY`.*
|
||||
💰 PayPal`select`[]🎯 DIRECT`[]🔰 PROXY`.*
|
||||
🚫 AdBlock`select`[]🎯 DIRECT`[]🔰 PROXY`[]REJECT`.*
|
||||
🐟 Other`select`[]🎯 DIRECT`[]🔰 PROXY`.*
|
||||
🎯 DIRECT`select`[]DIRECT
|
16
subconverter/snippets/rulesets.txt
Normal file
16
subconverter/snippets/rulesets.txt
Normal file
@ -0,0 +1,16 @@
|
||||
🚫 AdBlock,https://raw.githubusercontent.com/NobyDa/Script/master/Surge/AdRule.list
|
||||
🚫 AdBlock,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/Hijacking/Hijacking.list
|
||||
▶️ YouTube,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/YouTube/YouTube.list
|
||||
🍿 NETFLIX,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/Netflix/Netflix.list
|
||||
🐰 DisneyPlus,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/Disney/Disney.list
|
||||
💰 PayPal,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/PayPal/PayPal.list
|
||||
📺 AppleTV,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/AppleTV/AppleTV.list
|
||||
🍎 Apple,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/Apple/Apple.list
|
||||
Ⓜ️ Microsoft,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/Microsoft/Microsoft.list
|
||||
🔰 PROXY,https://git.jasuit.com/jh163888/Profiles/raw/branch/master/Surge/Ruleset/Global.list
|
||||
🎯 DIRECT,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/Lan/Lan.list
|
||||
🎯 DIRECT,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/China/China.list
|
||||
🎯 DIRECT,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/ChinaIPs/ChinaIPs.list
|
||||
🎯 DIRECT,https://git.jasuit.com/jh163888/ios_rule_script/raw/branch/master/rule/Surge/PrivateTracker/PrivateTracker.list
|
||||
🎯 DIRECT,[]GEOIP,CN
|
||||
🐟 Other,[]FINAL
|
Loading…
Reference in New Issue
Block a user