aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-04-06 13:25:38 +0200
committerKim Alvefur <zash@zash.se>2021-04-06 13:25:38 +0200
commitd35efa926b7f0fe9a9ba33a7f915b5713b43a8b2 (patch)
tree0bdbbd888e8cf5439cc1da014fd2ea58143d0971
parentecd6b31eea9a7e49e4da6b5d0cb4d39d573e3dad (diff)
downloadprosody-d35efa926b7f0fe9a9ba33a7f915b5713b43a8b2.tar.gz
prosody-d35efa926b7f0fe9a9ba33a7f915b5713b43a8b2.zip
mod_admin_shell: Remove obsolete checks related to s2sout.lib
s2sout.lib was removed in 756b8821007a along with srv_hosts and srv_choice
-rw-r--r--plugins/mod_admin_shell.lua15
1 files changed, 1 insertions, 14 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 18f075b8..7c2003e0 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -756,20 +756,7 @@ function def_env.s2s:show(match_jid, annotate)
print("There are "..#session.sendq.." queued outgoing stanzas for this connection");
end
if session.type == "s2sout_unauthed" then
- if session.connecting then
- print("Connection not yet established");
- if not session.srv_hosts then
- if not session.conn then
- print("We do not yet have a DNS answer for this host's SRV records");
- else
- print("This host has no SRV records, using A record instead");
- end
- elseif session.srv_choice then
- print("We are on SRV record "..session.srv_choice.." of "..#session.srv_hosts);
- local srv_choice = session.srv_hosts[session.srv_choice];
- print("Using "..(srv_choice.target or ".")..":"..(srv_choice.port or 5269));
- end
- elseif session.notopen then
+ if session.notopen then
print("The <stream> has not yet been opened");
elseif not session.dialback_key then
print("Dialback has not been initiated yet");