fix config

This commit is contained in:
arm64v8a
2022-11-10 09:46:40 +09:00
parent 3e0aac799c
commit 27502477b9
2 changed files with 23 additions and 14 deletions

View File

@@ -33,6 +33,7 @@ namespace NekoRay::fmt {
streamSettings["grpcSettings"] = grpc;
} else if (network == "quic") {
QJsonObject quic;
if (!header_type.isEmpty()) quic["header"] = QJsonObject{{"type", header_type}};
if (!path.isEmpty()) quic["key"] = path;
if (!host.isEmpty()) quic["security"] = host;
streamSettings["quicSettings"] = quic;