From 4fe8dfbd2a3283b29dff9d151f2d272d3bec250d Mon Sep 17 00:00:00 2001 From: hulk Date: Sun, 14 Nov 2021 10:44:32 +0800 Subject: [PATCH] Add the maxclients to the info command output (#391) --- src/server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server.cc b/src/server.cc index acd12efde10..97ee1a3673e 100644 --- a/src/server.cc +++ b/src/server.cc @@ -664,6 +664,7 @@ void Server::GetServerInfo(std::string *info) { void Server::GetClientsInfo(std::string *info) { std::ostringstream string_stream; string_stream << "# Clients\r\n"; + string_stream << "maxclients:" << config_->maxclients << "\r\n"; string_stream << "connected_clients:" << connected_clients_ << "\r\n"; string_stream << "monitor_clients:" << monitor_clients_ << "\r\n"; *info = string_stream.str();