Fix extra core

This commit is contained in:
Nova 2025-12-03 00:18:12 +03:30
parent 634460c0d4
commit 6496a2b3ac
2 changed files with 6 additions and 7 deletions

View File

@ -63,7 +63,6 @@ namespace Configs
class BuildPrerequisities
{
public:
std::shared_ptr<ExtraCoreData> extraCoreData = std::make_shared<ExtraCoreData>();
std::shared_ptr<DNSDeps> dnsDeps = std::make_shared<DNSDeps>();
std::shared_ptr<HijackDeps> hijackDeps = std::make_shared<HijackDeps>();
std::shared_ptr<TunDeps> tunDeps = std::make_shared<TunDeps>();
@ -74,7 +73,7 @@ namespace Configs
public:
QString error;
QJsonObject coreConfig;
std::shared_ptr<ExtraCoreData> extraCoreData;
std::shared_ptr<ExtraCoreData> extraCoreData = std::make_shared<ExtraCoreData>();
QList<std::shared_ptr<Stats::TrafficData>> outboundStats;
};

View File

@ -224,11 +224,11 @@ namespace Configs {
ctx->error = "failed to cast to extracore, type is: " + ctx->ent->type;
return;
}
preReqs->extraCoreData->path = QFileInfo(outbound->extraCorePath).canonicalFilePath();
preReqs->extraCoreData->args = outbound->extraCoreArgs;
preReqs->extraCoreData->config = outbound->extraCoreConf;
preReqs->extraCoreData->configDir = GetBasePath();
preReqs->extraCoreData->noLog = outbound->noLogs;
ctx->buildConfigResult->extraCoreData->path = QFileInfo(outbound->extraCorePath).canonicalFilePath();
ctx->buildConfigResult->extraCoreData->args = outbound->extraCoreArgs;
ctx->buildConfigResult->extraCoreData->config = outbound->extraCoreConf;
ctx->buildConfigResult->extraCoreData->configDir = GetBasePath();
ctx->buildConfigResult->extraCoreData->noLog = outbound->noLogs;
}
}