diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-14 16:13:56 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-14 16:13:56 +0200 |
commit | ee03f52d2044b38e82a1ba61922354663a5cb805 (patch) | |
tree | 315559f6d6a34eaf41d48b8d597c792dc4ae5456 /plugins/mod_s2s | |
parent | ae35950f7cd081ace7f6b3751e121888daf8a3d6 (diff) | |
download | prosody-ee03f52d2044b38e82a1ba61922354663a5cb805.tar.gz prosody-ee03f52d2044b38e82a1ba61922354663a5cb805.zip |
mod_s2s: Log a message before trying the next SRV record
This was the only spot where it did `ip_hosts = nil` without logging
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r-- | plugins/mod_s2s/s2sout.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua index 038d84a5..2fbcae26 100644 --- a/plugins/mod_s2s/s2sout.lib.lua +++ b/plugins/mod_s2s/s2sout.lib.lua @@ -252,6 +252,7 @@ function s2sout.try_connect(host_session, connect_host, connect_port, err) elseif host_session.ip_hosts and #host_session.ip_hosts > host_session.ip_choice then -- Not our first attempt, and we also have IPs left to try s2sout.try_next_ip(host_session); else + log("debug", "Out of IP addresses, trying next SRV record (if any)"); host_session.ip_hosts = nil; if not s2sout.attempt_connection(host_session, "out of IP addresses") then -- Retry if we can log("debug", "No other records to try for %s - destroying", host_session.to_host); |