mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 13:04:37 +03:00
fix vmess link parse
This commit is contained in:
@@ -113,7 +113,8 @@ namespace NekoRay::fmt {
|
|||||||
serverPort = objN["port"].toVariant().toInt();
|
serverPort = objN["port"].toVariant().toInt();
|
||||||
// OPTIONAL
|
// OPTIONAL
|
||||||
name = objN["ps"].toString();
|
name = objN["ps"].toString();
|
||||||
aid = objN["aid"].toInt();
|
auto aid_ = objN["aid"];
|
||||||
|
aid = aid_.isString() ? aid_.toString().toInt() : aid_.toInt();
|
||||||
stream->host = objN["host"].toString();
|
stream->host = objN["host"].toString();
|
||||||
stream->path = objN["path"].toString();
|
stream->path = objN["path"].toString();
|
||||||
stream->sni = objN["sni"].toString();
|
stream->sni = objN["sni"].toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user