From: Elena Mamontova Date: Tue, 9 Feb 2016 16:11:29 +0000 (+0200) Subject: Ticket 26. The int AUTH_IA::Reload() function definition added. X-Git-Tag: 2.409~174^2~1^2~45 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/ffb613dbeaea84a8732e992cdb660a051077995c Ticket 26. The int AUTH_IA::Reload() function definition added. --- diff --git a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp index 9c8ae1af..1d126ae5 100644 --- a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp +++ b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp @@ -526,6 +526,24 @@ if (ret) return ret; } //----------------------------------------------------------------------------- +int AUTH_IA::Reload() +{ +AUTH_IA_SETTINGS newIaSettings; +MODULE_SETTINGS newSettings = settings; +if (newIaSettings.ParseSettings(newSettings)) + { + STG_LOGGER & WriteServLog = GetStgLogger(); + printfd(__FILE__, "AUTH_IA::Reload() - Failed to reload InetAccess.\n"); + WriteServLog("AUTH_IA: Cannot reload InetAccess. Errors found."); + return -1; + } + +STG_LOGGER & WriteServLog = GetStgLogger(); +printfd(__FILE__, "AUTH_IA::Reload() - Reloaded InetAccess successfully.\n"); +WriteServLog("AUTH_IA: Reloaded InetAccess successfully."); +return 0; +} +//----------------------------------------------------------------------------- int AUTH_IA::PrepareNet() { struct sockaddr_in listenAddr;