1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 04:53:13 +02:00

Update /STATS P output a little (since it shows the control channel).

This commit is contained in:
Bram Matthys
2022-01-03 13:51:46 +01:00
parent df0a9e4f37
commit 243c6635da
+12 -3
View File
@@ -540,11 +540,20 @@ static char *stats_port_helper(ConfigItem_listen *listener)
{
static char buf[256];
ircsnprintf(buf, sizeof(buf), "%s%s%s%s",
ircsnprintf(buf, sizeof(buf), "%s%s%s",
(listener->options & LISTENER_CLIENTSONLY)? "clientsonly ": "",
(listener->options & LISTENER_SERVERSONLY)? "serversonly ": "",
(listener->options & LISTENER_TLS)? "tls ": "",
!(listener->options & LISTENER_TLS)? "plaintext ": "");
(listener->options & LISTENER_DEFER_ACCEPT)? "defer-accept ": "");
/* And one of these.. */
if (listener->options & LISTENER_CONTROL)
strlcat(buf, "control ", sizeof(buf));
else if (listener->socket_type == SOCKET_TYPE_UNIX)
;
else if (listener->options & LISTENER_TLS)
strlcat(buf, "tls ", sizeof(buf));
else
strlcat(buf, "plaintext ", sizeof(buf));
return buf;
}