mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 12:34:37 +03:00
fix: h2 -> http
fix: edit profile ui
This commit is contained in:
@@ -6,9 +6,7 @@ namespace NekoRay::fmt {
|
||||
// https://sing-box.sagernet.org/configuration/shared/v2ray-transport
|
||||
|
||||
if (network != "tcp") {
|
||||
QJsonObject transport{
|
||||
{"type", network.replace("h2", "http")},
|
||||
};
|
||||
QJsonObject transport{{"type", network},};
|
||||
if (network == "ws") {
|
||||
if (!path.isEmpty()) transport["path"] = path;
|
||||
if (!host.isEmpty()) transport["headers"] = QJsonObject{{"Host", host}};
|
||||
|
||||
Reference in New Issue
Block a user