Commit 5c0e6878 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

daemon/config: bind to v4 and v6 loopback separately

parent 6171faeb
-- Listen on localhost
if not next(net.list()) then
local ok, err = pcall(net.listen, {'', '::1'})
local ok, err = pcall(net.listen, '')
if not ok then
error('bind to localhost#53 '..err)
error('bind to '..err)
-- IPv6 loopback may fail
ok, err = pcall(net.listen, '::1')
if not ok and verbose() then
print('bind to ::1#53 '..err)
-- Open cache if not set/disabled
Supports Markdown
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