Remove duplicate dnsmasq config file location

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2018-01-03 20:36:23 -05:00
parent 595ab259ca
commit 620bb44daa
3 changed files with 1 additions and 3 deletions
-1
View File
@@ -90,7 +90,6 @@ typedef struct {
const char* whitelist;
const char* blacklist;
const char* setupVars;
const char* dnsmasqconf;
const char* wildcards;
const char* auditlist;
const char* dnsmasqconfig;
+1 -1
View File
@@ -110,7 +110,7 @@ void getList(int *sock, char type, char list_type) {
}
void getPiholeStatus(int *sock, char type) {
int status = countlineswith("#addn-hosts=/etc/pihole/gravity.list", files.dnsmasqconf);
int status = countlineswith("#addn-hosts=/etc/pihole/gravity.list", files.dnsmasqconfig);
// sendAPIResponse(*sock, type, OK);
ssend(*sock, "\"status\":%i", status == 1 ? 0 : 1);
}
-1
View File
@@ -26,7 +26,6 @@ logFileNamesStruct files = {
"/etc/pihole/whitelist.txt",
"/etc/pihole/blacklist.txt",
"/etc/pihole/setupVars.conf",
"/etc/dnsmasq.d/01-pihole.conf",
"/etc/dnsmasq.d/03-pihole-wildcard.conf",
"/etc/pihole/auditlog.list",
"/etc/dnsmasq.d/01-pihole.conf"