mirror of
https://github.com/bolucat/Archive.git
synced 2025-12-24 13:28:37 +08:00
Update On Fri Oct 24 20:39:48 CEST 2025
This commit is contained in:
@@ -83,6 +83,10 @@ o = s:option(Value, _n("decryption"), translate("Encrypt Method") .. " (decrypti
|
||||
o.default = "none"
|
||||
o.placeholder = "none"
|
||||
o:depends({ [_n("protocol")] = "vless" })
|
||||
o.validate = function(self, value)
|
||||
value = api.trim(value)
|
||||
return (value == "" and "none" or value)
|
||||
end
|
||||
|
||||
o = s:option(ListValue, _n("x_ss_method"), translate("Encrypt Method"))
|
||||
o.rewrite_option = "method"
|
||||
|
||||
@@ -241,7 +241,7 @@ function gen_outbound(flag, node, tag, proxy_table)
|
||||
id = node.uuid,
|
||||
level = 0,
|
||||
security = (node.protocol == "vmess") and node.security or nil,
|
||||
encryption = (node.encryption and node.encryption ~= "") and node.encryption or "none",
|
||||
encryption = (node.protocol == "vless") and ((node.encryption and node.encryption ~= "") and node.encryption or "none") or nil,
|
||||
flow = (node.protocol == "vless"
|
||||
and (node.tls == "1" or (node.encryption and node.encryption ~= "" and node.encryption ~= "none"))
|
||||
and (node.transport == "raw" or node.transport == "tcp" or node.transport == "xhttp")
|
||||
@@ -321,7 +321,7 @@ function gen_config_server(node)
|
||||
end
|
||||
settings = {
|
||||
clients = clients,
|
||||
decryption = node.decryption or "none"
|
||||
decryption = (node.protocol == "vless") and ((node.decryption and node.decryption ~= "") and node.decryption or "none") or nil
|
||||
}
|
||||
end
|
||||
elseif node.protocol == "socks" then
|
||||
|
||||
Reference in New Issue
Block a user