mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 20:50:09 +08:00
Fix extra core
This commit is contained in:
parent
634460c0d4
commit
6496a2b3ac
@ -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;
|
||||
};
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user