TMXR: Count per line TCP sessions

This commit is contained in:
Mark Pizzolato 2022-03-03 17:41:12 -08:00
parent abd756ebad
commit 92415062b5

View file

@ -1326,7 +1326,7 @@ for (i = 0; i < mp->lines; i++) { /* check each line in se
tmxr_debug_connect_line (lp, msg); tmxr_debug_connect_line (lp, msg);
free (sockname); free (sockname);
free (peername); free (peername);
++mp->sessions; /* count the new session */ ++lp->sessions; /* count the new session */
if (lp->acl) { /* Restrict connection with ACL rules? */ if (lp->acl) { /* Restrict connection with ACL rules? */
if (sim_addr_acl_check (address, lp->acl) != 0) { if (sim_addr_acl_check (address, lp->acl) != 0) {