75 local host = hosts[from_host].s2sout[to_host]; |
75 local host = hosts[from_host].s2sout[to_host]; |
76 if host then |
76 if host then |
77 -- We have a connection to this host already |
77 -- We have a connection to this host already |
78 if host.type == "s2sout_unauthed" and data.name ~= "db:verify" and ((not data.xmlns) or data.xmlns == "jabber:client" or data.xmlns == "jabber:server") then |
78 if host.type == "s2sout_unauthed" and data.name ~= "db:verify" and ((not data.xmlns) or data.xmlns == "jabber:client" or data.xmlns == "jabber:server") then |
79 (host.log or log)("debug", "trying to send over unauthed s2sout to "..to_host); |
79 (host.log or log)("debug", "trying to send over unauthed s2sout to "..to_host); |
80 if not host.notopen and not host.dialback_key then |
80 if not host.notopen and not host.dialback_key and host.sends2s then |
81 host.log("debug", "dialback had not been initiated"); |
81 host.log("debug", "dialback had not been initiated"); |
82 initiate_dialback(host); |
82 initiate_dialback(host); |
83 end |
83 end |
84 |
84 |
85 -- Queue stanza until we are able to send it |
85 -- Queue stanza until we are able to send it |