mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 01:44:16 +08:00
🍉 Sync 2026-03-08 20:17:37
This commit is contained in:
1 parent
b9150d9a07
commit
727d0dbe93
2 files changed
+7
-1
No files matched your search
@@ -486,7 +486,7 @@ o.validate = function(self, value, t)
|
|||||||
end
|
end
|
||||||
local _tcp_node = s.fields["tcp_node"]:formvalue(t)
|
local _tcp_node = s.fields["tcp_node"]:formvalue(t)
|
||||||
if _dns_mode and _tcp_node then
|
if _dns_mode and _tcp_node then
|
||||||
if m:get(_tcp_node, "type"):lower() ~= _dns_mode then
|
if (m:get(_tcp_node, "type") or ""):lower() ~= _dns_mode then
|
||||||
return nil, translatef("TCP node must be '%s' type to use FakeDNS.", _dns_mode)
|
return nil, translatef("TCP node must be '%s' type to use FakeDNS.", _dns_mode)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -334,6 +334,9 @@ function gen_outbound(flag, node, tag, proxy_table)
|
|||||||
if type(fm.tcp) == "table" then
|
if type(fm.tcp) == "table" then
|
||||||
finalmask.tcp = fm.tcp
|
finalmask.tcp = fm.tcp
|
||||||
end
|
end
|
||||||
|
if type(fm.quicParams) == "table" then
|
||||||
|
finalmask.quicParams = fm.quicParams
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -658,6 +661,9 @@ function gen_config_server(node)
|
|||||||
if type(fm.tcp) == "table" then
|
if type(fm.tcp) == "table" then
|
||||||
finalmask.tcp = fm.tcp
|
finalmask.tcp = fm.tcp
|
||||||
end
|
end
|
||||||
|
if type(fm.quicParams) == "table" then
|
||||||
|
finalmask.quicParams = fm.quicParams
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user