plugins/mod_s2s.lua
changeset 11709 7132acfd287e
parent 11708 0a8671f32424
child 11711 61759372be26
equal deleted inserted replaced
11708:0a8671f32424 11709:7132acfd287e
   643 			log("debug", "Disconnecting %s->%s[%s], <stream:error> is: %s",
   643 			log("debug", "Disconnecting %s->%s[%s], <stream:error> is: %s",
   644 				session.from_host or "(unknown host)" or session.ip, session.to_host or "(unknown host)", session.type, reason);
   644 				session.from_host or "(unknown host)" or session.ip, session.to_host or "(unknown host)", session.type, reason);
   645 			session.sends2s(stream_error);
   645 			session.sends2s(stream_error);
   646 		end
   646 		end
   647 	else
   647 	else
   648 		m_closed_connections:with_labels(this_host, session.direction, reason == false and ":remote-choice" or ":local-choice"):add(1)
   648 		m_closed_connections:with_labels(this_host or ":unknown", session.direction, reason == false and ":remote-choice" or ":local-choice"):add(1)
   649 	end
   649 	end
   650 
   650 
   651 	session.sends2s("</stream:stream>");
   651 	session.sends2s("</stream:stream>");
   652 	function session.sends2s() return false; end
   652 	function session.sends2s() return false; end
   653 
   653