From 705eeddd084e2021d6c46181f6fb78cf58bbc2ae Mon Sep 17 00:00:00 2001 From: Andreas Pohl Date: Tue, 3 May 2022 16:43:16 +0200 Subject: [PATCH] Server: Choose plugin isolation sandbox mode after upgrade --- Server/Source/Server.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Server/Source/Server.cpp b/Server/Source/Server.cpp index 85af735..164bcc4 100644 --- a/Server/Source/Server.cpp +++ b/Server/Source/Server.cpp @@ -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"));