mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2025-12-31 08:19:51 -06:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user