mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Only return regex index when allowed by privacy settings. This may leak information, otherwise.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
+3
-2
@@ -993,9 +993,10 @@ void getAllQueries(const char *client_message, const int *sock)
|
||||
CNAME_domain = getCNAMEDomainString(query);
|
||||
}
|
||||
|
||||
// Get ID of blocking regex, if applicable
|
||||
// Get ID of blocking regex, if applicable and permitted by privacy settings
|
||||
int regex_idx = -1;
|
||||
if (query->status == QUERY_REGEX || query->status == QUERY_REGEX_CNAME)
|
||||
if ((query->status == QUERY_REGEX || query->status == QUERY_REGEX_CNAME) &&
|
||||
config.privacylevel < PRIVACY_HIDE_DOMAINS)
|
||||
{
|
||||
unsigned int cacheID = findCacheID(query->domainID, query->clientID, query->type);
|
||||
DNSCacheData *dns_cache = getDNSCache(cacheID, true);
|
||||
|
||||
Reference in New Issue
Block a user