mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-30 14:39:04 +08:00
fix #1035
This commit is contained in:
parent
a5190e7e4d
commit
2ae66cfa7d
@ -111,7 +111,7 @@ namespace Subscription {
|
||||
if (dataBytes.isEmpty()) return;
|
||||
auto data = QJsonDocument::fromJson(dataBytes).object();
|
||||
if (data.isEmpty()) return;
|
||||
ent = Configs::ProfileManager::NewProxyEntity(data["type"].toString());
|
||||
ent = data["type"].toString() == "hysteria2" ? Configs::ProfileManager::NewProxyEntity("hysteria") : Configs::ProfileManager::NewProxyEntity(data["type"].toString());
|
||||
if (ent->outbound->invalid) return;
|
||||
ent->outbound->ParseFromJson(data);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user