update 2024-09-18 00:16:37

This commit is contained in:
actions-user 2024-09-18 00:16:37 +08:00
parent d91175e184
commit cca3149518
1 changed files with 18 additions and 14 deletions

View File

@ -619,22 +619,26 @@ function gen_config_server(node)
end end
if node.protocol == "tuic" then if node.protocol == "tuic" then
tls.alpn = (node.tuic_alpn and node.tuic_alpn ~= "") and { if node.uuid then
node.tuic_alpn local users = {}
} or nil for i = 1, #node.uuid do
protocol_table = { users[i] = {
users = { name = node.uuid[i],
{ uuid = node.uuid[i],
name = "user1",
uuid = node.uuid,
password = node.password password = node.password
} }
}, end
congestion_control = node.tuic_congestion_control or "cubic", tls.alpn = (node.tuic_alpn and node.tuic_alpn ~= "") and {
zero_rtt_handshake = (node.tuic_zero_rtt_handshake == "1") and true or false, node.tuic_alpn
heartbeat = node.tuic_heartbeat .. "s", } or nil
tls = tls protocol_table = {
} users = users,
congestion_control = node.tuic_congestion_control or "cubic",
zero_rtt_handshake = (node.tuic_zero_rtt_handshake == "1") and true or false,
heartbeat = node.tuic_heartbeat .. "s",
tls = tls
}
end
end end
if node.protocol == "hysteria2" then if node.protocol == "hysteria2" then