From 1b24089ad3e509d5c1488197421f79ca15b29f26 Mon Sep 17 00:00:00 2001 From: Glen Pit-Pladdy Date: Tue, 11 Apr 2017 12:20:10 +0100 Subject: [PATCH] Fix wrong ordering of response in hosts file --- py-hole-dnsmasq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-hole-dnsmasq b/py-hole-dnsmasq index 1e467f2..1715065 100755 --- a/py-hole-dnsmasq +++ b/py-hole-dnsmasq @@ -67,7 +67,7 @@ def addhost ( host ): outputdata += "%s seenbefore in %s %s" % (commentstart,seenbefore[host],commentstart) if host in config['exclusions']: outputdata += "%s excluded %s" % (commentstart,commentstart) - outputdata += "%s %s\n" % (host,config['defaultresponse']) + outputdata += "%s %s\n" % (config['defaultresponse'],host) seenbefore[host] = source