update 2025-04-07 20:42:49
This commit is contained in:
parent
c2616cb560
commit
adcf62a6c5
|
@ -654,7 +654,7 @@ if (!isEmpty(main_node)) {
|
||||||
urltest_nodes = [...urltest_nodes, ...filter(main_udp_urltest_nodes, (l) => !~index(urltest_nodes, l))];
|
urltest_nodes = [...urltest_nodes, ...filter(main_udp_urltest_nodes, (l) => !~index(urltest_nodes, l))];
|
||||||
} else if (dedicated_udp_node) {
|
} else if (dedicated_udp_node) {
|
||||||
const main_udp_node_cfg = uci.get_all(uciconfig, main_udp_node) || {};
|
const main_udp_node_cfg = uci.get_all(uciconfig, main_udp_node) || {};
|
||||||
if (main_node_cfg.type === 'wireguard') {
|
if (main_udp_node_cfg.type === 'wireguard') {
|
||||||
push(config.endpoints, generate_endpoint(main_udp_node_cfg));
|
push(config.endpoints, generate_endpoint(main_udp_node_cfg));
|
||||||
config.endpoints[length(config.endpoints)-1].tag = 'main-udp-out';
|
config.endpoints[length(config.endpoints)-1].tag = 'main-udp-out';
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -30,7 +30,7 @@ local subscribe_url = ucic:get_first(name, 'server_subscribe', 'subscribe_url',
|
||||||
local filter_words = ucic:get_first(name, 'server_subscribe', 'filter_words', '过期时间/剩余流量')
|
local filter_words = ucic:get_first(name, 'server_subscribe', 'filter_words', '过期时间/剩余流量')
|
||||||
local save_words = ucic:get_first(name, 'server_subscribe', 'save_words', '')
|
local save_words = ucic:get_first(name, 'server_subscribe', 'save_words', '')
|
||||||
-- 读取 ss_type 设置
|
-- 读取 ss_type 设置
|
||||||
local ss_type = ucic:get_first(name, 'server_subscribe', 'ss_type')
|
local ss_type = ucic:get_first(name, 'server_subscribe', 'ss_type', 'ss-rust')
|
||||||
-- 根据 ss_type 选择对应的程序
|
-- 根据 ss_type 选择对应的程序
|
||||||
local ss_program = ""
|
local ss_program = ""
|
||||||
if ss_type == "ss-rust" then
|
if ss_type == "ss-rust" then
|
||||||
|
@ -180,6 +180,7 @@ local function processData(szType, content)
|
||||||
if not isCompleteJSON(content) then
|
if not isCompleteJSON(content) then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if szType == "hysteria2" or szType == "hy2" then
|
if szType == "hysteria2" or szType == "hy2" then
|
||||||
local url = URL.parse("http://" .. content)
|
local url = URL.parse("http://" .. content)
|
||||||
local params = url.query
|
local params = url.query
|
||||||
|
@ -788,7 +789,7 @@ local execute = function()
|
||||||
if result then
|
if result then
|
||||||
-- 中文做地址的 也没有人拿中文域名搞,就算中文域也有Puny Code SB 机场
|
-- 中文做地址的 也没有人拿中文域名搞,就算中文域也有Puny Code SB 机场
|
||||||
if not result.server or not result.server_port or result.alias == "NULL" or check_filer(result) or result.server:match("[^0-9a-zA-Z%-_%.%s]") or cache[groupHash][result.hashkey] then
|
if not result.server or not result.server_port or result.alias == "NULL" or check_filer(result) or result.server:match("[^0-9a-zA-Z%-_%.%s]") or cache[groupHash][result.hashkey] then
|
||||||
log('丢弃无效节点: ' .. result.type .. ' 节点, ' .. result.alias)
|
log('丢弃无效节点: ' .. result.alias)
|
||||||
else
|
else
|
||||||
-- log('成功解析: ' .. result.type ..' 节点, ' .. result.alias)
|
-- log('成功解析: ' .. result.type ..' 节点, ' .. result.alias)
|
||||||
result.grouphashkey = groupHash
|
result.grouphashkey = groupHash
|
||||||
|
|
Loading…
Reference in New Issue