Update version number to 0.15.0

Move AllowAddresses out of Interface into Server in openspace.cfg to circumvent potential stack corruption
Make lua_state not being copied
This commit is contained in:
Alexander Bock
2019-09-17 18:38:40 +02:00
parent 9f88a7347b
commit af4dee8d01
4 changed files with 18 additions and 4 deletions

View File

@@ -82,6 +82,15 @@ void ServerModule::internalInitialize(const ghoul::Dictionary& configuration) {
for (const std::string& key : interfaces.keys()) {
ghoul::Dictionary interfaceDictionary = interfaces.value<ghoul::Dictionary>(key);
// @TODO (abock, 2019-09-17); This is a hack to make the parsing of the
// openspace.cfg file not corrupt the heap and cause a potential crash at shutdown
// (see ticket https://github.com/OpenSpace/OpenSpace/issues/982)
// The AllowAddresses are specified externally and are injected here
interfaceDictionary.setValue(
"AllowAddresses",
configuration.value<ghoul::Dictionary>("AllowAddresses")
);
std::unique_ptr<ServerInterface> serverInterface =
ServerInterface::createFromDictionary(interfaceDictionary);