Skip to content

Commit

Permalink
Server: Choose plugin isolation sandbox mode after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
apohl79 committed May 3, 2022
1 parent 497ed73 commit 705eedd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Server/Source/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,7 @@ void Server::loadConfig() {
m_scanForPlugins = jsonGetValue(cfg, "ScanForPlugins", m_scanForPlugins);
m_crashReporting = jsonGetValue(cfg, "CrashReporting", m_crashReporting);
logln("crash reporting is " << (m_crashReporting ? "enabled" : "disabled"));
bool sandboxLegacy = jsonGetValue(cfg, "Sandboxing", false);
m_sandboxMode = (SandboxMode)jsonGetValue(cfg, "SandboxMode", (int)SANDBOX_NONE);
if (m_sandboxMode == SANDBOX_NONE && sandboxLegacy) {
m_sandboxMode = SANDBOX_CHAIN;
}
m_sandboxMode = (SandboxMode)jsonGetValue(cfg, "SandboxMode", m_sandboxMode);
logln("sandbox mode is " << (m_sandboxMode == SANDBOX_CHAIN ? "chain"
: m_sandboxMode == SANDBOX_PLUGIN ? "plugin"
: "disabled"));
Expand Down

0 comments on commit 705eedd

Please sign in to comment.