mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-29 20:45:14 +08:00
update 2026-09-25 17:17:20
This commit is contained in:
1 parent
5d73e6f09a
commit
e8f9e08c4a
66 files changed
+40
-20575
No files matched your search
@@ -1470,6 +1470,10 @@ function gen_config(var)
|
||||
end
|
||||
end
|
||||
if to_node then
|
||||
local chained_tag = outbound.tag .. " -> " .. to_node[".name"] .. (to_node.remarks and ":" .. to_node.remarks or "")
|
||||
for _, o in ipairs(outbounds_table) do
|
||||
if o.tag == chained_tag then return chained_tag, last_insert_outbound end
|
||||
end
|
||||
local to_outbound
|
||||
if to_node.type ~= "sing-box" then
|
||||
local tag = to_node[".name"]
|
||||
@@ -1531,7 +1535,7 @@ function gen_config(var)
|
||||
local outbound, exist
|
||||
if node.protocol == "_urltest" then
|
||||
outbound, exist = gen_urltest_outbound(node)
|
||||
if exist then
|
||||
if exist and not node.chain_proxy then
|
||||
return outbound.tag
|
||||
end
|
||||
elseif node.protocol == "_iface" then
|
||||
@@ -1559,7 +1563,7 @@ function gen_config(var)
|
||||
end
|
||||
if outbound then
|
||||
local default_outbound_tag, last_insert_outbound = set_outbound_detour(node, outbound, outbounds)
|
||||
table.insert(outbounds, outbound)
|
||||
if not exist then table.insert(outbounds, outbound) end
|
||||
if last_insert_outbound then
|
||||
table.insert(outbounds, last_insert_outbound)
|
||||
end
|
||||
|
||||
@@ -81,7 +81,7 @@ run_ipt2socks() {
|
||||
[ -n "$tcp_tproxy" ] || _extra_param="${_extra_param} -R"
|
||||
flag="${flag}_TCP_UDP"
|
||||
_extra_param="${_extra_param} -o 60 -n 65535 -v"
|
||||
ln_run "$(first_type ipt2socks)" "ipt2socks_${flag}" $log_file -l $local_port -b 0.0.0.0 -s $socks_address -p $socks_port ${_extra_param}
|
||||
ln_run "$(first_type ipt2socks)" "ipt2socks_${flag}" $log_file -l $local_port -b 0.0.0.0 -B :: -s $socks_address -p $socks_port ${_extra_param}
|
||||
}
|
||||
|
||||
run_singbox() {
|
||||
|
||||
Reference in new issue
Block a user