Merge remote-tracking branch 'origin/fara' into roman

This commit is contained in:
3lswear
2022-02-20 16:18:44 +03:00
5 changed files with 66 additions and 6 deletions

View File

@@ -27,10 +27,13 @@ void Server::readConfig(char *filename)
arr = parser.root->find("server")->second->getMapArray();
it = arr->begin();
ServerConfig *tmp;
while (it != arr->end())
{
_configs.push_back(new ServerConfig(*it));
tmp = new ServerConfig(*it);
_configs.push_back(tmp);
tmp->fillFields();
++it;
}