aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-09-25 17:32:13 +0200
committerKim Alvefur <zash@zash.se>2015-09-25 17:32:13 +0200
commit86200054b7d306b7f7b47af2434268990b837452 (patch)
tree91021d156437e1e70f8d0f41b528e6f99d51d6e9 /net
parent8b4045e568305347a39a0c30b13421476aa5812a (diff)
downloadprosody-86200054b7d306b7f7b47af2434268990b837452.tar.gz
prosody-86200054b7d306b7f7b47af2434268990b837452.zip
net.dns: Use new IPv4-specific socket factory if available (fixes dns on libevent with latest development version of luasocket)
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index acc1556c..80bd895c 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -620,7 +620,7 @@ function resolver:getsocket(servernum) -- - - - - - - - - - - - - getsocket
if peer:find(":") then
sock, err = socket.udp6();
else
- sock, err = socket.udp();
+ sock, err = (socket.udp4 or socket.udp)();
end
if sock and self.socket_wrapper then sock, err = self.socket_wrapper(sock, self); end
if not sock then