Software /
code /
prosody
Comparison
net/unbound.lua @ 11248:a1aecd8cf7ee
net.unbound: Log net.server interactions
Noticed the potential need for this thanks to Ge0rG
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 05 Jan 2021 19:53:40 +0100 |
parent | 10968:23ae55cbbeaf |
child | 11249:137c44d2714a |
comparison
equal
deleted
inserted
replaced
11247:4e803e80d7b1 | 11248:a1aecd8cf7ee |
---|---|
43 end); | 43 end); |
44 end | 44 end |
45 -- Note: libunbound will default to using root hints if resolvconf is unset | 45 -- Note: libunbound will default to using root hints if resolvconf is unset |
46 | 46 |
47 local function connect_server(unbound, server) | 47 local function connect_server(unbound, server) |
48 log("debug", "Setting up net.server event handling for %s", unbound); | |
48 return server.watchfd(unbound, function () | 49 return server.watchfd(unbound, function () |
50 log("debug", "Processing queries for %s", unbound); | |
49 unbound:process() | 51 unbound:process() |
50 end); | 52 end); |
51 end | 53 end |
52 | 54 |
53 local unbound = libunbound.new(unbound_config); | 55 local unbound = libunbound.new(unbound_config); |