mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-16 21:43:33 +08:00
⛅ Sync 2026-05-03 20:20:03
This commit is contained in:
1 parent
3dae6d0119
commit
dac242c7dc
72 files changed
+5840
-4686
No files matched your search
@@ -124,6 +124,8 @@ function gen_outbound(flag, node, tag, proxy_table)
|
||||
tag = tag .. ":" .. remarks
|
||||
end
|
||||
|
||||
node.address = (node.address or ""):lower()
|
||||
|
||||
result = {
|
||||
_id = node_id,
|
||||
_flag = flag,
|
||||
@@ -1007,7 +1009,7 @@ function gen_config(var)
|
||||
blc_nodes = _node.balancing_node
|
||||
end
|
||||
local valid_nodes = {}
|
||||
for i = 1, #blc_nodes do
|
||||
for i = 1, #(blc_nodes or {}) do
|
||||
local blc_node_id = blc_nodes[i]
|
||||
local blc_node_tag = "blc-" .. blc_node_id
|
||||
local is_new_blc_node = true
|
||||
@@ -1539,6 +1541,7 @@ function gen_config(var)
|
||||
local domain = {}
|
||||
local nodes_domain_text = sys.exec([[uci show passwall | sed -n "s/.*\.\(address\|download_address\)='\([^']*\)'/\2/p" | sort -u]])
|
||||
string.gsub(nodes_domain_text, '[^' .. "\r\n" .. ']+', function(w)
|
||||
w = (w or ""):lower()
|
||||
if not api.vps_domain_exclude(w) and api.datatypes.hostname(w) and not GLOBAL.VPS_EXCLUDE[w] then
|
||||
table.insert(domain, "full:" .. w)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user