config.lua 384 Bytes
Newer Older
1
2
-- Listen on localhost
if not next(net.list()) then
3
	local ok, err = pcall(net.listen, '127.0.0.1')
4
	if not ok then
5
6
7
8
9
10
		error('bind to 127.0.0.1#53 '..err)
	end
	-- IPv6 loopback may fail
	ok, err = pcall(net.listen, '::1')
	if not ok and verbose() then
		print('bind to ::1#53 '..err)
11
	end
12
13
14
end
-- Open cache if not set/disabled
if not cache.current_size then
15
	cache.size = 100 * MB
16
end