mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-28 21:31:22 +08:00
fix transport
This commit is contained in:
parent
94acf0fafa
commit
818ab3e568
@ -51,7 +51,7 @@ namespace NekoGui_fmt {
|
|||||||
}
|
}
|
||||||
transport["headers"] = QMapString2QJsonObject(headerMap);
|
transport["headers"] = QMapString2QJsonObject(headerMap);
|
||||||
}
|
}
|
||||||
outbound->insert("transport", transport);
|
if (!network.trimmed().isEmpty()) outbound->insert("transport", transport);
|
||||||
} else if (header_type == "http") {
|
} else if (header_type == "http") {
|
||||||
// TCP + headerType
|
// TCP + headerType
|
||||||
QJsonObject transport{
|
QJsonObject transport{
|
||||||
@ -60,7 +60,7 @@ namespace NekoGui_fmt {
|
|||||||
{"path", path},
|
{"path", path},
|
||||||
{"headers", QJsonObject{{"Host", QListStr2QJsonArray(host.split(","))}}},
|
{"headers", QJsonObject{{"Host", QListStr2QJsonArray(host.split(","))}}},
|
||||||
};
|
};
|
||||||
outbound->insert("transport", transport);
|
if (!network.trimmed().isEmpty()) outbound->insert("transport", transport);
|
||||||
}
|
}
|
||||||
|
|
||||||
// tls
|
// tls
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user