X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/3a45cd9275dc9279e133deb0932402ae5f4d0b5f..0f4172ffbddd7b51c80f388adc69c4601d230bf6:/projects/sgauth/settings_impl.h diff --git a/projects/sgauth/settings_impl.h b/projects/sgauth/settings_impl.h index 2de52577..f35e3f8c 100644 --- a/projects/sgauth/settings_impl.h +++ b/projects/sgauth/settings_impl.h @@ -15,7 +15,7 @@ */ /* - * Author : Maxim Mamontov + * Author : Maksym Mamontov */ #ifndef SETTINGS_IMPL_H @@ -30,13 +30,14 @@ public: SETTINGS_IMPL(); ~SETTINGS_IMPL() {} int Reload() { return 0; } - void SetConfFile(const std::string cf) { confFile = cf; } + void SetConfFile(const std::string & cf) { confFile = cf; } int ReadSettings(); const std::string & GetStrError() const { return strError; } const std::string & GetServerName() const { return serverName; } uint16_t GetServerPort() const { return port; } + const std::string & GetLocalName() const { return localName; } uint16_t GetLocalPort() const { return localPort; } const std::string & GetLogin() const { return login; } @@ -56,6 +57,7 @@ private: std::string password; std::string serverName; int port; + std::string localName; int localPort; uint32_t listenWebIP; int refreshPeriod;