aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-07-10 07:47:54 +0200
committerKim Alvefur <zash@zash.se>2013-07-10 07:47:54 +0200
commit382080aac7ad79b4cfa7c007d2b362ac92ab1174 (patch)
tree906dfdf5f30e7168f5ed66077d09faae6a5a7498 /net/dns.lua
parentc6f38695b19f39591963331727bf8274e71e3d40 (diff)
parent0eefd598cba2ca39b318a060b01ba0532fbb0077 (diff)
downloadprosody-382080aac7ad79b4cfa7c007d2b362ac92ab1174.tar.gz
prosody-382080aac7ad79b4cfa7c007d2b362ac92ab1174.zip
Merge 0.9->trunk
Diffstat (limited to 'net/dns.lua')
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index bd42db73..95f09cc9 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -629,10 +629,10 @@ function resolver:getsocket(servernum) -- - - - - - - - - - - - - getsocket
else
sock, err = socket.udp();
end
+ if sock and self.socket_wrapper then sock, err = self.socket_wrapper(sock, self); end
if not sock then
return nil, err;
end
- if self.socket_wrapper then sock = self.socket_wrapper(sock, self); end
sock:settimeout(0);
-- todo: attempt to use a random port, fallback to 0
sock:setsockname('*', 0);