mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
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:
parent
b9c1e0f630
commit
161f948cdd
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user