mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 23:03:56 +08:00
update 2026-10-06 04:10:42
This commit is contained in:
1 parent
ec960a1df0
commit
4e01b07aa7
181 files changed
+41583
-10
No files matched your search
@@ -540,6 +540,10 @@ function gen_config_server(node)
|
||||
u.user = user.username
|
||||
u.pass = user.password
|
||||
end
|
||||
if node.protocol == "masque" then
|
||||
u.email = user.username
|
||||
u.pass = user.password
|
||||
end
|
||||
if node.protocol == "shadowsocks" or node.protocol == "trojan" then
|
||||
u.email = user.username
|
||||
u.password = user.password
|
||||
@@ -610,6 +614,18 @@ function gen_config_server(node)
|
||||
version = 2,
|
||||
users = users
|
||||
}
|
||||
elseif node.protocol == "masque" then
|
||||
node.transport = "masque"
|
||||
node.tls = "1"
|
||||
node.reality = nil
|
||||
node.alpn = nil
|
||||
node.fallback = nil
|
||||
node.finalmask = nil
|
||||
settings = {
|
||||
users = users,
|
||||
address = node.masque_address,
|
||||
mtu = tonumber(node.masque_mtu or 1280)
|
||||
}
|
||||
elseif node.protocol == "tunnel" then
|
||||
settings = {
|
||||
allowedNetwork = node.d_protocol,
|
||||
@@ -719,6 +735,9 @@ function gen_config_server(node)
|
||||
streamSettings = {
|
||||
method = node.transport,
|
||||
security = "none",
|
||||
masqueSettings = (node.protocol == "masque") and {
|
||||
path = (node.masque_path and node.masque_path ~= "") and node.masque_path or nil
|
||||
} or nil,
|
||||
tlsSettings = ("1" == node.tls) and {
|
||||
disableSystemRoot = false,
|
||||
certificates = {
|
||||
|
||||
Reference in new issue
Block a user