More cleanup of listeners

This commit is contained in:
Alexey Sokolov committed 2025-04-19 20:44:39 +01:00
1 parent 3348de5b97
commit 18af9b0895
2 files changed
+11 -13

No files matched your search

+2 -4
View File
@@ -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;