parent
e09e58bf79
commit
12dad74d59
@ -619,23 +619,27 @@ function gen_config_server(node)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if node.protocol == "tuic" then
|
if node.protocol == "tuic" then
|
||||||
|
if node.uuid then
|
||||||
|
local users = {}
|
||||||
|
for i = 1, #node.uuid do
|
||||||
|
users[i] = {
|
||||||
|
name = node.uuid[i],
|
||||||
|
uuid = node.uuid[i],
|
||||||
|
password = node.password
|
||||||
|
}
|
||||||
|
end
|
||||||
tls.alpn = (node.tuic_alpn and node.tuic_alpn ~= "") and {
|
tls.alpn = (node.tuic_alpn and node.tuic_alpn ~= "") and {
|
||||||
node.tuic_alpn
|
node.tuic_alpn
|
||||||
} or nil
|
} or nil
|
||||||
protocol_table = {
|
protocol_table = {
|
||||||
users = {
|
users = users,
|
||||||
{
|
|
||||||
name = "user1",
|
|
||||||
uuid = node.uuid,
|
|
||||||
password = node.password
|
|
||||||
}
|
|
||||||
},
|
|
||||||
congestion_control = node.tuic_congestion_control or "cubic",
|
congestion_control = node.tuic_congestion_control or "cubic",
|
||||||
zero_rtt_handshake = (node.tuic_zero_rtt_handshake == "1") and true or false,
|
zero_rtt_handshake = (node.tuic_zero_rtt_handshake == "1") and true or false,
|
||||||
heartbeat = node.tuic_heartbeat .. "s",
|
heartbeat = node.tuic_heartbeat .. "s",
|
||||||
tls = tls
|
tls = tls
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if node.protocol == "hysteria2" then
|
if node.protocol == "hysteria2" then
|
||||||
protocol_table = {
|
protocol_table = {
|
||||||
|
Loading…
Reference in New Issue
Block a user