This commit is contained in:
parhelia512 2025-12-19 11:18:40 +08:00 committed by GitHub
parent a5190e7e4d
commit 2ae66cfa7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}