aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-12-01 04:54:23 +0100
committerKim Alvefur <zash@zash.se>2017-12-01 04:54:23 +0100
commita586b19dfd852b998d51f09ef4c3d90693f869ad (patch)
treed52e9b6b8097ddc42cc9ae912b982a51195a6384 /net/dns.lua
parent64361b4894092d2e73742444c78d7f5deb4b172c (diff)
parent8e6092d58a22c88cd97c15b6cefe60de8a53d307 (diff)
downloadprosody-a586b19dfd852b998d51f09ef4c3d90693f869ad.tar.gz
prosody-a586b19dfd852b998d51f09ef4c3d90693f869ad.zip
Merge 0.10->trunk
Diffstat (limited to 'net/dns.lua')
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index fa570af1..e6749025 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -397,7 +397,7 @@ function resolver:AAAA(rr)
end
addr = table.concat(addr, ":"):gsub("%f[%x]0+(%x)","%1");
local zeros = {};
- for item in addr:gmatch(":[0:]+:") do
+ for item in addr:gmatch(":[0:]+:[0:]+:") do
table.insert(zeros, item)
end
if #zeros == 0 then