mod_admin_shell: Remove obsolete checks related to s2sout.lib
authorKim Alvefur <zash@zash.se>
Tue, 06 Apr 2021 13:25:38 +0200
changeset 11508 1f700f5f62cb
parent 11507 7adda14945ad
child 11509 61d38c4b749d
mod_admin_shell: Remove obsolete checks related to s2sout.lib s2sout.lib was removed in 756b8821007a along with srv_hosts and srv_choice
plugins/mod_admin_shell.lua
--- a/plugins/mod_admin_shell.lua	Mon Apr 05 17:21:18 2021 +0200
+++ b/plugins/mod_admin_shell.lua	Tue Apr 06 13:25:38 2021 +0200
@@ -756,20 +756,7 @@
 				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");