More cleanup of listeners

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

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;