X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ed9b5422750ca2ce8e57146cd8f4c2df31b6224c..ffb613dbeaea84a8732e992cdb660a051077995c:/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp 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;