net/dns.lua
changeset 6860 86fcc3fa1a97
parent 6783 647adfd8f738
child 6869 abff7543b79c
--- a/net/dns.lua	Fri Sep 25 17:26:47 2015 +0200
+++ b/net/dns.lua	Fri Sep 25 17:32:13 2015 +0200
@@ -620,7 +620,7 @@
 	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