|
@@ -117,7 +117,7 @@ local Xray = {
|
|
-- 底层传输配置
|
|
-- 底层传输配置
|
|
streamSettings = {
|
|
streamSettings = {
|
|
network = server.transport or "tcp",
|
|
network = server.transport or "tcp",
|
|
- security = (server.xtls == '1') and "xtls" or (server.tls == '1') and "tls" or nil,
|
|
|
|
|
|
+ security = (server.xtls == '1') and "xtls" or (server.tls == '1'or server.transport == "grpc") and "tls" or nil,
|
|
tlsSettings = (server.tls == '1' and (server.insecure == "1" or server.tls_host or server.fingerprint)) and {
|
|
tlsSettings = (server.tls == '1' and (server.insecure == "1" or server.tls_host or server.fingerprint)) and {
|
|
-- tls
|
|
-- tls
|
|
fingerprint = server.fingerprint,
|
|
fingerprint = server.fingerprint,
|
|
@@ -169,9 +169,14 @@ local Xray = {
|
|
security = server.quic_security,
|
|
security = server.quic_security,
|
|
key = server.quic_key,
|
|
key = server.quic_key,
|
|
header = {type = server.quic_guise}
|
|
header = {type = server.quic_guise}
|
|
|
|
+ } or nil,
|
|
|
|
+ grpcSettings = (server.transport == "grpc") and {
|
|
|
|
+ -- grpc
|
|
|
|
+ serviceName = server.serviceName or "",
|
|
|
|
+ multiMode = (server.mux == "1") and true or false
|
|
} or nil
|
|
} or nil
|
|
},
|
|
},
|
|
- mux = (server.mux == "1" and server.xtls ~= "1") and {
|
|
|
|
|
|
+ mux = (server.mux == "1" and server.xtls ~= "1" and server.transport ~= "grpc") and {
|
|
-- mux
|
|
-- mux
|
|
enabled = true,
|
|
enabled = true,
|
|
concurrency = tonumber(server.concurrency)
|
|
concurrency = tonumber(server.concurrency)
|