Merge pull request #286 from gfyoung/flush-dns-cache-bug

Patch promptForFlushDnsCache Bug
This commit is contained in:
Steven Black
2017-05-08 23:04:26 -04:00
committed by GitHub
+7 -5
View File
@@ -191,11 +191,13 @@ def promptForMoreCustomExclusions(question="Do you have more domains you want to
def promptForFlushDnsCache():
if settings['auto']:
if settings['flushdnscache']:
flushDnsCache()
else:
if settings['flushdnscache'] or query_yes_no("Attempt to flush the DNS cache?"):
if settings["flushdnscache"]:
flushDnsCache()
if not settings["auto"]:
response = query_yes_no("Attempt to flush the DNS cache?")
if response == "yes":
flushDnsCache()