diff --git a/include/znc/znc.h b/include/znc/znc.h index 96969ed4..cf2326e3 100644 --- a/include/znc/znc.h +++ b/include/znc/znc.h @@ -99,6 +99,7 @@ public: void SetAnonIPLimit(unsigned int i) { m_uiAnonIPLimit = i; } void SetServerThrottle(unsigned int i) { m_sConnectThrottle.SetTTL(i*1000); } void SetProtectWebSessions(bool b) { m_bProtectWebSessions = b; } + void SetHideVersion(bool b) { m_bHideVersion = b; } void SetConnectDelay(unsigned int i); // !Setters @@ -127,6 +128,7 @@ public: unsigned int GetServerThrottle() const { return m_sConnectThrottle.GetTTL() / 1000; } unsigned int GetConnectDelay() const { return m_uiConnectDelay; } bool GetProtectWebSessions() const { return m_bProtectWebSessions; } + bool GetHideVersion() const { return m_bHideVersion; } CString GetSSLCiphers() const { return m_sSSLCiphers; } Csock::EDisableProtocol GetDisabledSSLProtocols() const { return static_cast(m_uDisabledSSLProtocols); } // !Getters @@ -229,6 +231,7 @@ protected: unsigned int m_uiConnectPaused; TCacheMap m_sConnectThrottle; bool m_bProtectWebSessions; + bool m_bHideVersion; }; #endif // !_ZNC_H diff --git a/modules/data/webadmin/tmpl/settings.tmpl b/modules/data/webadmin/tmpl/settings.tmpl index a2a0aa4e..ef3f8eb2 100644 --- a/modules/data/webadmin/tmpl/settings.tmpl +++ b/modules/data/webadmin/tmpl/settings.tmpl @@ -137,6 +137,13 @@ +
+
Hide ZNC Version:
+
checked="checked" /> +
+
+ +
MOTD: