# HG changeset patch # User Matthew Wild # Date 1294159077 0 # Node ID 764922062c380f80b00550332d37b0fb72e5dffa # Parent 84792db89336e3ff1bbba18821400d004144d7dd net.adns: Log the DNS server that a query is sent to diff -r 84792db89336 -r 764922062c38 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