mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-10-04 22:05:39 +01:00
Merge pull request #286 from gfyoung/flush-dns-cache-bug
Patch promptForFlushDnsCache Bug
This commit is contained in:
+7
-5
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user