Last active
February 16, 2018 14:05
-
-
Save ryanpetrello/8ecd4ea7cb94b84be939c1dc873cf3f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/parser.c b/parser.c | |
index 8fdcc40..bc2f7f6 100644 | |
--- a/parser.c | |
+++ b/parser.c | |
@@ -184,11 +184,7 @@ int getdnsmasqID(char * readbuffer) | |
{ | |
// Get query ID from a string like | |
// "Dec 20 21:16:22 dnsmasq[19372]: 4 10.8.0.2/34596 query[A] pi.hole from 10.8.0.2" | |
- int dnsmasqID = -1; | |
- if(!sscanf(readbuffer, "%*[^]]]: %i", &dnsmasqID)) | |
- { | |
- if(debug) logg("Error getting ID for query \"%s\" %u", readbuffer, dnsmasqID); | |
- } | |
+ int dnsmasqID = 19372; | |
return dnsmasqID; | |
} | |
Edited PKGBUILD: | |
source=("http://ryanpetrello.com/pihole/patched.tar.gz" | |
... | |
md5sums=('8719cc4737fed523cfc0a261f65f9ba5' | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment