mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
Fix extra core
This commit is contained in:
parent
634460c0d4
commit
6496a2b3ac
@ -63,7 +63,6 @@ namespace Configs
|
|||||||
class BuildPrerequisities
|
class BuildPrerequisities
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
std::shared_ptr<ExtraCoreData> extraCoreData = std::make_shared<ExtraCoreData>();
|
|
||||||
std::shared_ptr<DNSDeps> dnsDeps = std::make_shared<DNSDeps>();
|
std::shared_ptr<DNSDeps> dnsDeps = std::make_shared<DNSDeps>();
|
||||||
std::shared_ptr<HijackDeps> hijackDeps = std::make_shared<HijackDeps>();
|
std::shared_ptr<HijackDeps> hijackDeps = std::make_shared<HijackDeps>();
|
||||||
std::shared_ptr<TunDeps> tunDeps = std::make_shared<TunDeps>();
|
std::shared_ptr<TunDeps> tunDeps = std::make_shared<TunDeps>();
|
||||||
@ -74,7 +73,7 @@ namespace Configs
|
|||||||
public:
|
public:
|
||||||
QString error;
|
QString error;
|
||||||
QJsonObject coreConfig;
|
QJsonObject coreConfig;
|
||||||
std::shared_ptr<ExtraCoreData> extraCoreData;
|
std::shared_ptr<ExtraCoreData> extraCoreData = std::make_shared<ExtraCoreData>();
|
||||||
|
|
||||||
QList<std::shared_ptr<Stats::TrafficData>> outboundStats;
|
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;
|
ctx->error = "failed to cast to extracore, type is: " + ctx->ent->type;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
preReqs->extraCoreData->path = QFileInfo(outbound->extraCorePath).canonicalFilePath();
|
ctx->buildConfigResult->extraCoreData->path = QFileInfo(outbound->extraCorePath).canonicalFilePath();
|
||||||
preReqs->extraCoreData->args = outbound->extraCoreArgs;
|
ctx->buildConfigResult->extraCoreData->args = outbound->extraCoreArgs;
|
||||||
preReqs->extraCoreData->config = outbound->extraCoreConf;
|
ctx->buildConfigResult->extraCoreData->config = outbound->extraCoreConf;
|
||||||
preReqs->extraCoreData->configDir = GetBasePath();
|
ctx->buildConfigResult->extraCoreData->configDir = GetBasePath();
|
||||||
preReqs->extraCoreData->noLog = outbound->noLogs;
|
ctx->buildConfigResult->extraCoreData->noLog = outbound->noLogs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user