mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Add SSL/IPv6/DNS info to znc --version
This commit is contained in:
+23
@@ -92,6 +92,29 @@ CString CZNC::GetTag(bool bIncludeVersion) {
|
||||
return szBuf;
|
||||
}
|
||||
|
||||
CString CZNC::GetCompileOptionsString() {
|
||||
return
|
||||
"IPv6: "
|
||||
#ifdef HAVE_IPV6
|
||||
"yes"
|
||||
#else
|
||||
"no"
|
||||
#endif
|
||||
", SSL: "
|
||||
#ifdef HAVE_LIBSSL
|
||||
"yes"
|
||||
#else
|
||||
"no"
|
||||
#endif
|
||||
", DNS: "
|
||||
#ifdef HAVE_THREADED_DNS
|
||||
"threads"
|
||||
#else
|
||||
"blocking"
|
||||
#endif
|
||||
;
|
||||
}
|
||||
|
||||
CString CZNC::GetUptime() const {
|
||||
time_t now = time(NULL);
|
||||
return CString::ToTimeStr(now - TimeStarted());
|
||||
|
||||
Reference in New Issue
Block a user