mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
fix: tls sni parse
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user