Software /
code /
prosody
Changeset
886:96de7f0a41cc
net.adns: Set new send in net.server after 'connecting UDP' socket
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 07 Mar 2009 19:57:28 +0000 |
parents | 885:38ed2db19a55 |
children | 887:eef21d7bbe04 894:b61c3589cd7b |
files | net/adns.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/adns.lua Sat Mar 07 19:56:53 2009 +0000 +++ b/net/adns.lua Sat Mar 07 19:57:28 2009 +0000 @@ -29,7 +29,7 @@ newconn.handler, newconn._socket = server.wrapclient(sock, "dns", 53, listener); newconn.handler.settimeout = function () end newconn.handler.setsockname = function (_, ...) return sock:setsockname(...); end - newconn.handler.setpeername = function (_, ...) return sock:setpeername(...); end + newconn.handler.setpeername = function (_, ...) local ret = sock:setpeername(...); _.setsend(sock.send); return ret; end newconn.handler.connect = function (_, ...) return sock:connect(...) end newconn.handler.send = function (_, data) return _.write(data) end return newconn.handler;