diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua index 1451dca36..698dc619d 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua @@ -486,7 +486,7 @@ o.validate = function(self, value, t) end local _tcp_node = s.fields["tcp_node"]:formvalue(t) 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) end end diff --git a/luci-app-passwall/luasrc/passwall/util_xray.lua b/luci-app-passwall/luasrc/passwall/util_xray.lua index 49b054640..9bcacff2f 100644 --- a/luci-app-passwall/luasrc/passwall/util_xray.lua +++ b/luci-app-passwall/luasrc/passwall/util_xray.lua @@ -334,6 +334,9 @@ function gen_outbound(flag, node, tag, proxy_table) if type(fm.tcp) == "table" then finalmask.tcp = fm.tcp end + if type(fm.quicParams) == "table" then + finalmask.quicParams = fm.quicParams + end end end end @@ -658,6 +661,9 @@ function gen_config_server(node) if type(fm.tcp) == "table" then finalmask.tcp = fm.tcp end + if type(fm.quicParams) == "table" then + finalmask.quicParams = fm.quicParams + end end end end