diff options
author | Kim Alvefur <zash@zash.se> | 2015-09-25 17:32:13 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-09-25 17:32:13 +0200 |
commit | 2e0dff9f57279f37a5633396f5971c016d5fd8bf (patch) | |
tree | 91021d156437e1e70f8d0f41b528e6f99d51d6e9 /net | |
parent | 94117d463fc8c63306c208b01ff6a9ae5349bf28 (diff) | |
download | prosody-2e0dff9f57279f37a5633396f5971c016d5fd8bf.tar.gz prosody-2e0dff9f57279f37a5633396f5971c016d5fd8bf.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.lua | 2 |
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 |