mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 05:07:42 +03:00
Merge 0.12->trunk
This commit is contained in:
commit
180daf56a1
1 changed files with 5 additions and 4 deletions
|
@ -751,16 +751,17 @@ local function check(arg)
|
|||
|
||||
local fqdn = socket.dns.tohostname(socket.dns.gethostname());
|
||||
if fqdn then
|
||||
do
|
||||
local res = dns.lookup(idna.to_ascii(fqdn), "A");
|
||||
local fqdn_a = idna.to_ascii(fqdn);
|
||||
if fqdn_a then
|
||||
local res = dns.lookup(fqdn_a, "A");
|
||||
if res then
|
||||
for _, record in ipairs(res) do
|
||||
external_addresses:add(record.a);
|
||||
end
|
||||
end
|
||||
end
|
||||
do
|
||||
local res = dns.lookup(idna.to_ascii(fqdn), "AAAA");
|
||||
if fqdn_a then
|
||||
local res = dns.lookup(fqdn_a, "AAAA");
|
||||
if res then
|
||||
for _, record in ipairs(res) do
|
||||
external_addresses:add(record.aaaa);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue