Skip to content
Snippets Groups Projects
Verified Commit 8a91133d authored by Tomas Krizek's avatar Tomas Krizek
Browse files

config.lua: exit if kresd isn't listening on any interface

parent 997242e0
Branches
Tags
1 merge request!464systemd: enable multiple processes with socket activation
......@@ -9,6 +9,10 @@ if not next(net.list()) and not env.KRESD_NO_LISTEN then
if not ok and verbose() then
print('bind to ::1@53 '..err)
end
-- Exit when kresd isn't listening on any interfaces
if not next(net.list()) then
panic('not listening on any interface, exiting...')
end
end
-- Open cache if not set/disabled
if not cache.current_size then
......
......@@ -42,4 +42,3 @@ policy.add(policy.rpz(policy.DENY, 'blacklist.rpz'))
-- Optional: use Redis/Memcached as a cache backend which may be distributed between nodes
-- cache.storage = 'redis://127.0.0.1:6398'
......@@ -35,4 +35,3 @@ view:addr('10.0.0.0/24', policy.suffix(policy.DROP, {todname('site.nl')}))
view:addr('192.168.2.0/24', policy.all(policy.TC))
-- Apply RPZ for all clients, default rule is DENY
policy.add(policy.rpz(policy.DENY, 'blacklist.rpz'))
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment