mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
More cleanup of listeners
This commit is contained in:
@@ -1994,8 +1994,8 @@ class CWebAdminMod : public CModule {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_IPV6
|
||||
if (pTCPListener != nullptr) {
|
||||
#ifdef HAVE_IPV6
|
||||
switch (pTCPListener->GetAddrType()) {
|
||||
case ADDR_IPV4ONLY:
|
||||
l["IsIPV4"] = "true";
|
||||
@@ -2008,12 +2008,10 @@ class CWebAdminMod : public CModule {
|
||||
l["IsIPV6"] = "true";
|
||||
break;
|
||||
}
|
||||
}
|
||||
#else
|
||||
if (pTCPListener != nullptr) {
|
||||
l["IsIPV4"] = "true";
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
vector<CString> vDirs;
|
||||
|
||||
Reference in New Issue
Block a user