Add shared per-client regex array. This ensures TCP and UDP workers know the same details about client/regex combinations. This commit also fixes an issue with regex group associations for configured clients that have no assigned group.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-12-30 17:13:57 +00:00
parent c9c7c27888
commit 4c74a29f87
11 changed files with 184 additions and 72 deletions
+3 -3
View File
@@ -200,12 +200,12 @@ int findClientID(const char *clientIP, const bool count)
for(int i = 0; i < OVERTIME_SLOTS; i++)
client->overTime[i] = 0;
// Allocate regex substructure
allocate_regex_client_enabled(client);
// Increase counter by one
counters->clients++;
// Allocate regex substructure
allocate_regex_client_enabled(client, clientID);
return clientID;
}