mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 12:34:37 +03:00
support vmess header
This commit is contained in:
@@ -113,11 +113,11 @@ namespace NekoRay::fmt {
|
||||
serverPort = objN["port"].toVariant().toInt();
|
||||
// OPTIONAL
|
||||
name = objN["ps"].toString();
|
||||
auto aid_ = objN["aid"];
|
||||
aid = aid_.isString() ? aid_.toString().toInt() : aid_.toInt();
|
||||
aid = objN["aid"].toVariant().toInt();
|
||||
stream->host = objN["host"].toString();
|
||||
stream->path = objN["path"].toString();
|
||||
stream->sni = objN["sni"].toString();
|
||||
stream->header_type = objN["type"].toString();
|
||||
auto net = objN["net"].toString().replace("http", "h2");
|
||||
if (!net.isEmpty()) stream->network = net;
|
||||
auto scy = objN["scy"].toString();
|
||||
|
||||
Reference in New Issue
Block a user