# HG changeset patch # User Matthew Wild # Date 1294159077 0 # Node ID 9106dcd4815ece2e33f7b97a88b318d7d7880287 # Parent f3adda1ed0df669d76b4473fcd8deedeabfab71a net.adns: Log the DNS server that a query is sent to diff -r f3adda1ed0df -r 9106dcd4815e net/adns.lua --- a/net/adns.lua Mon Jan 03 09:40:45 2011 +0100 +++ b/net/adns.lua Tue Jan 04 16:37:57 2011 +0000 @@ -78,7 +78,10 @@ handler.setpeername = function (_, ...) peername = (...); local ret = sock:setpeername(...); _:set_send(dummy_send); return ret; end handler.connect = function (_, ...) return sock:connect(...) end --handler.send = function (_, data) _:write(data); return _.sendbuffer and _.sendbuffer(); end - handler.send = function (_, data) return sock:send(data); end + handler.send = function (_, data) + log("debug", "Sending DNS query to %s", sock:getpeername()); + return sock:send(data); + end return handler; end