mirror of
https://github.com/pi-hole/FTL.git
synced 2025-12-20 05:58:25 +00:00
Use globally defined strings instead of duplicating them here manually
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -748,9 +748,9 @@ void _FTL_cache(const unsigned int flags, const char *name, const struct all_add
|
|||||||
unsigned char requesttype = 0;
|
unsigned char requesttype = 0;
|
||||||
if(flags & F_HOSTS)
|
if(flags & F_HOSTS)
|
||||||
{
|
{
|
||||||
if(arg != NULL && strcmp(arg, "gravity") == 0)
|
if(arg != NULL && strcmp(arg, SRC_GRAVITY_NAME) == 0)
|
||||||
requesttype = QUERY_GRAVITY;
|
requesttype = QUERY_GRAVITY;
|
||||||
else if(arg != NULL && strcmp(arg, "blacklist") == 0)
|
else if(arg != NULL && strcmp(arg, SRC_BLACK_NAME) == 0)
|
||||||
requesttype = QUERY_BLACKLIST;
|
requesttype = QUERY_BLACKLIST;
|
||||||
else // local.list, hostname.list, /etc/hosts and others
|
else // local.list, hostname.list, /etc/hosts and others
|
||||||
requesttype = QUERY_CACHE;
|
requesttype = QUERY_CACHE;
|
||||||
|
|||||||
Reference in New Issue
Block a user