mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-22 03:40:22 +08:00
add: added default vmess "type" field
This commit is contained in:
parent
407436ffba
commit
a3ce8015d6
@ -52,6 +52,11 @@ namespace Qv2ray::core::connection
|
||||
vmessUriRoot["host"] = transfer.httpSettings.host.join(",");
|
||||
vmessUriRoot["path"] = transfer.httpSettings.path;
|
||||
}
|
||||
|
||||
if(!vmessUriRoot.contains("type") || vmessUriRoot["type"].toString().isEmpty())
|
||||
{
|
||||
vmessUriRoot["type"] = "none";
|
||||
}
|
||||
|
||||
//
|
||||
auto vmessPart = Base64Encode(JsonToString(vmessUriRoot, QJsonDocument::JsonFormat::Compact));
|
||||
|
Loading…
Reference in New Issue
Block a user