fix: h2 -> http

fix: edit profile ui
This commit is contained in:
arm64v8a
2022-11-09 09:34:03 +09:00
parent f4744e7c7e
commit 7c47a616e4
8 changed files with 38 additions and 27 deletions

View File

@@ -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}};