mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
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:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user