diff options
Diffstat (limited to 'zenserver/config.cpp')
| -rw-r--r-- | zenserver/config.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp index 4c30be3ea..14908b615 100644 --- a/zenserver/config.cpp +++ b/zenserver/config.cpp @@ -573,5 +573,11 @@ ParseConfigFile(const std::filesystem::path& Path, ZenServerOptions& ServerOptio ServerOptions.GcConfig.Cas.TinyStrategySizeLimit = CasGcConfig.value().get_or("tinystrategysizelimit", ~uint64_t(0)); } } + + if (sol::optional<sol::table> SecurityConfig = lua["security"]) + { + ServerOptions.EncryptionKey = SecurityConfig.value().get_or("encryptionaeskey", std::string()); + ServerOptions.EncryptionIV = SecurityConfig.value().get_or("encryptionaesiv", std::string()); + } } } |