projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e6fed1
)
net.dns: Use new IPv4-specific socket factory if available (fixes dns on libevent...
author
Kim Alvefur
<zash@zash.se>
Fri, 25 Sep 2015 15:32:13 +0000
(17:32 +0200)
committer
Kim Alvefur
<zash@zash.se>
Fri, 25 Sep 2015 15:32:13 +0000
(17:32 +0200)
net/dns.lua
patch
|
blob
|
history
diff --git
a/net/dns.lua
b/net/dns.lua
index acc1556c400fe0086637fcab3cf972d54810ea65..80bd895c3132ec441644ced22e1468d1dbc3b57d 100644
(file)
--- 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