mirror of
https://github.com/yrutschle/sslh.git
synced 2026-11-26 03:16:42 +03:00
count protocol connections even if no maximum is set
This commit is contained in:
1 parent
5434dc59df
commit
65c9c4ce95
1 file changed
+1
-1
@@ -602,8 +602,8 @@ void dump_connection(struct connection *cnx)
|
||||
* Returns 1 if connection count is exceeded, 0 otherwise */
|
||||
int inc_connections(struct connection* cnx)
|
||||
{
|
||||
cnx->proto->num_connections++;
|
||||
if (cnx->proto->max_connections_is_present) {
|
||||
cnx->proto->num_connections++;
|
||||
print_message(msg_connections, "Proto %s +1: %d/%d cnx\n",
|
||||
cnx->proto->name,
|
||||
cnx->proto->num_connections,
|
||||
|
||||
Reference in new issue
Block a user