mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-03 06:13:56 +08:00
update 2026-06-27 10:41:28
This commit is contained in:
1 parent
e233b82c33
commit
99dd851e1c
3 files changed
+12
-4
No files matched your search
@@ -128,6 +128,7 @@ config PACKAGE_$(PKG_NAME)_INCLUDE_Http_Proxy
|
|||||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Mihomo
|
config PACKAGE_$(PKG_NAME)_INCLUDE_Mihomo
|
||||||
bool "Include Mihomo (Clash Support)"
|
bool "Include Mihomo (Clash Support)"
|
||||||
select PACKAGE_mihomo
|
select PACKAGE_mihomo
|
||||||
|
select PACKAGE_v2ray-geoip
|
||||||
depends on aarch64||arm||i386||loongarch64||riscv64||x86_64
|
depends on aarch64||arm||i386||loongarch64||riscv64||x86_64
|
||||||
default y if aarch64||arm||i386||loongarch64||riscv64||x86_64
|
default y if aarch64||arm||i386||loongarch64||riscv64||x86_64
|
||||||
|
|
||||||
|
|||||||
@@ -323,6 +323,8 @@ link_mihomo_geodata() {
|
|||||||
else
|
else
|
||||||
[ -s /etc/openclash/geoip.dat ] && ln -sf /etc/openclash/geoip.dat "$workdir/geoip.dat"
|
[ -s /etc/openclash/geoip.dat ] && ln -sf /etc/openclash/geoip.dat "$workdir/geoip.dat"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare_tuic_runtime_config() {
|
prepare_tuic_runtime_config() {
|
||||||
|
|||||||
@@ -2525,7 +2525,9 @@ local execute = function()
|
|||||||
if isClashYAML(raw) then
|
if isClashYAML(raw) then
|
||||||
is_clash_subscription = true
|
is_clash_subscription = true
|
||||||
local result = processClashSubscription(fetch_url)
|
local result = processClashSubscription(fetch_url)
|
||||||
if result and not check_filer(result) and not cache[groupHash][result.hashkey] then
|
if result and check_filer(result) then
|
||||||
|
log('过滤 Clash 总节点: ' .. result.alias)
|
||||||
|
elseif result and not cache[groupHash][result.hashkey] then
|
||||||
result.grouphashkey = groupHash
|
result.grouphashkey = groupHash
|
||||||
table.insert(nodeResult[index], result)
|
table.insert(nodeResult[index], result)
|
||||||
cache[groupHash][result.hashkey] = result
|
cache[groupHash][result.hashkey] = result
|
||||||
@@ -2620,13 +2622,16 @@ local execute = function()
|
|||||||
end
|
end
|
||||||
-- log(result)
|
-- log(result)
|
||||||
if result then
|
if result then
|
||||||
|
local filtered = check_filer(result)
|
||||||
-- 中文做地址的 也没有人拿中文域名搞,就算中文域也有Puny Code SB 机场
|
-- 中文做地址的 也没有人拿中文域名搞,就算中文域也有Puny Code SB 机场
|
||||||
if not result.server or not result.server_port
|
local invalid = not result.server or not result.server_port
|
||||||
or (result.type ~= "clash" and result.server == "127.0.0.1")
|
or (result.type ~= "clash" and result.server == "127.0.0.1")
|
||||||
or result.alias == "NULL"
|
or result.alias == "NULL"
|
||||||
or check_filer(result)
|
|
||||||
or (result.type ~= "clash" and result.server:match("[^0-9a-zA-Z%-_%.%s]"))
|
or (result.type ~= "clash" and result.server:match("[^0-9a-zA-Z%-_%.%s]"))
|
||||||
or cache[groupHash][result.hashkey] then
|
or cache[groupHash][result.hashkey]
|
||||||
|
if filtered then
|
||||||
|
log('过滤节点: ' .. result.alias)
|
||||||
|
elseif invalid then
|
||||||
log('丢弃无效节点: ' .. result.alias)
|
log('丢弃无效节点: ' .. result.alias)
|
||||||
else
|
else
|
||||||
-- 暂存节点
|
-- 暂存节点
|
||||||
|
|||||||
Reference in new issue
Block a user