mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +03:00
mod_s2s: Check that an SRV reply isn't empty.
This commit is contained in:
parent
151f74b143
commit
ddd751aed9
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ function s2sout.attempt_connection(host_session, err)
|
|||
handle = adns.lookup(function (answer)
|
||||
handle = nil;
|
||||
host_session.connecting = nil;
|
||||
if answer then
|
||||
if answer and #answer > 0 then
|
||||
log("debug", "%s has SRV records, handling...", to_host);
|
||||
local srv_hosts = {};
|
||||
host_session.srv_hosts = srv_hosts;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue