aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
-rw-r--r--net/dns.lua9
2 files changed, 9 insertions, 2 deletions
diff --git a/configure b/configure
index 207fd0c1..f2d8fc09 100755
--- a/configure
+++ b/configure
@@ -61,7 +61,7 @@ EOF
while [ "$1" ]
do
- value="`echo $1 | sed 's/.*=\(.*\)/\1/'`"
+ value="`echo $1 | sed 's/[^=]*=\(.*\)/\1/'`"
if echo "$value" | grep -q "~"
then
echo
diff --git a/net/dns.lua b/net/dns.lua
index 8855cc61..020a0ae8 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -851,7 +851,14 @@ end
function resolver:lookup(qname, qtype, qclass) -- - - - - - - - - - lookup
self:query (qname, qtype, qclass)
- while self:pulse() do socket.select(self.socket, nil, 4); end
+ while self:pulse() do
+ local recvt = {}
+ local i, s
+ for i, s in ipairs(self.socket) do
+ recvt[i] = s.socket()
+ end
+ socket.select(recvt, nil, 4)
+ end
--print(self.cache);
return self:peek(qname, qtype, qclass);
end