Software /
code /
prosody
Diff
net/dns.lua @ 8440:4e6710b4f873
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 Dec 2017 04:54:23 +0100 |
parent | 8427:1371518f70ff |
parent | 8421:3d21c63ec03f |
child | 8555:4f0f5b49bb03 |
line wrap: on
line diff
--- a/net/dns.lua Fri Dec 01 03:13:52 2017 +0100 +++ b/net/dns.lua Fri Dec 01 04:54:23 2017 +0100 @@ -397,7 +397,7 @@ 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