fix: tls sni parse

This commit is contained in:
arm64v8a
2022-11-07 11:33:15 +09:00
parent b4fe36137f
commit e88ec1c127
9 changed files with 33 additions and 28 deletions

View File

@@ -10,8 +10,7 @@ outbound["streamSettings"] = streamSettings;
namespace NekoRay::fmt {
QJsonObject V2rayStreamSettings::BuildStreamSettingsV2Ray() {
QJsonObject streamSettings{
{"network", network},
{"security", security},
{"network", network},
};
if (network == "ws") {
@@ -54,6 +53,7 @@ namespace NekoRay::fmt {
tls["alpn"] = QList2QJsonArray(alpn.split(","));
}
streamSettings["tlsSettings"] = tls;
streamSettings["security"] = "tls";
}
if (!header_type.isEmpty()) {