mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
fix vmess link parse
This commit is contained in:
@@ -113,7 +113,8 @@ namespace NekoRay::fmt {
|
||||
serverPort = objN["port"].toVariant().toInt();
|
||||
// OPTIONAL
|
||||
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->path = objN["path"].toString();
|
||||
stream->sni = objN["sni"].toString();
|
||||
|
||||
Reference in New Issue
Block a user