Unbound: rebuild unbound blacklist download, fix previous (.conf files are being imported by unbound so we need to use another suffix for our config files)

This commit is contained in:
Ad Schellevis 2020-09-29 17:31:34 +02:00
parent b9c1e0f630
commit 161f948cdd
2 changed files with 3 additions and 3 deletions

View File

@ -84,9 +84,9 @@ if __name__ == '__main__':
startup_time = time.time()
syslog.openlog('unbound', logoption=syslog.LOG_DAEMON, facility=syslog.LOG_LOCAL4)
blacklist_items = set()
if os.path.exists('/var/unbound/etc/blacklists.conf'):
if os.path.exists('/var/unbound/etc/blacklists.ini'):
cnf = ConfigParser()
cnf.read('/var/unbound/etc/blacklists.conf')
cnf.read('/var/unbound/etc/blacklists.ini')
# exclude (white) lists, compile to regex to be used to filter blacklist entries
if cnf.has_section('exclude'):
exclude_list = set()

View File

@ -1,4 +1,4 @@
root.min.hints:/var/unbound/root.hints
miscellaneous.conf:/var/unbound/etc/miscellaneous.conf
dot.conf:/var/unbound/etc/dot.conf
blacklists.conf:/var/unbound/etc/blacklists.conf
blacklists.conf:/var/unbound/etc/blacklists.ini