mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:42:51 +08:00
fix vmess link parse
This commit is contained in:
parent
81d461ad69
commit
bf7e3c5057
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user