Software /
code /
prosody
Comparison
plugins/mod_admin_shell.lua @ 11504:1f700f5f62cb
mod_admin_shell: Remove obsolete checks related to s2sout.lib
s2sout.lib was removed in 756b8821007a along with srv_hosts and
srv_choice
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 06 Apr 2021 13:25:38 +0200 |
parent | 11478:c0c4431ab27b |
child | 11523:5f15ab7c6ae5 |
comparison
equal
deleted
inserted
replaced
11503:7adda14945ad | 11504:1f700f5f62cb |
---|---|
754 local print = function (s) table.insert(sess_lines, " "..s); end | 754 local print = function (s) table.insert(sess_lines, " "..s); end |
755 if session.sendq then | 755 if session.sendq then |
756 print("There are "..#session.sendq.." queued outgoing stanzas for this connection"); | 756 print("There are "..#session.sendq.." queued outgoing stanzas for this connection"); |
757 end | 757 end |
758 if session.type == "s2sout_unauthed" then | 758 if session.type == "s2sout_unauthed" then |
759 if session.connecting then | 759 if session.notopen then |
760 print("Connection not yet established"); | |
761 if not session.srv_hosts then | |
762 if not session.conn then | |
763 print("We do not yet have a DNS answer for this host's SRV records"); | |
764 else | |
765 print("This host has no SRV records, using A record instead"); | |
766 end | |
767 elseif session.srv_choice then | |
768 print("We are on SRV record "..session.srv_choice.." of "..#session.srv_hosts); | |
769 local srv_choice = session.srv_hosts[session.srv_choice]; | |
770 print("Using "..(srv_choice.target or ".")..":"..(srv_choice.port or 5269)); | |
771 end | |
772 elseif session.notopen then | |
773 print("The <stream> has not yet been opened"); | 760 print("The <stream> has not yet been opened"); |
774 elseif not session.dialback_key then | 761 elseif not session.dialback_key then |
775 print("Dialback has not been initiated yet"); | 762 print("Dialback has not been initiated yet"); |
776 elseif session.dialback_key then | 763 elseif session.dialback_key then |
777 print("Dialback has been requested, but no result received"); | 764 print("Dialback has been requested, but no result received"); |