Skip to content

Instantly share code, notes, and snippets.

@ryanpetrello
Last active February 16, 2018 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanpetrello/8ecd4ea7cb94b84be939c1dc873cf3f8 to your computer and use it in GitHub Desktop.
Save ryanpetrello/8ecd4ea7cb94b84be939c1dc873cf3f8 to your computer and use it in GitHub Desktop.
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