Don't send stream:features to incoming s2s connections
authorMatthew Wild <mwild1@gmail.com>
Thu, 04 Dec 2008 17:10:02 +0000
changeset 544 efde848869c5
parent 543 cf6e19ea1cbc
child 545 60002993be04
Don't send stream:features to incoming s2s connections
core/s2smanager.lua
--- a/core/s2smanager.lua	Thu Dec 04 16:41:32 2008 +0000
+++ b/core/s2smanager.lua	Thu Dec 04 17:10:02 2008 +0000
@@ -180,7 +180,9 @@
 function streamopened(session, attr)
 	local send = session.sends2s;
 	
-	session.version = tonumber(attr.version) or 0;
+	-- TODO: #29: SASL/TLS on s2s streams
+	session.version = 0; --tonumber(attr.version) or 0;
+	
 	if session.version >= 1.0 and not (attr.to and attr.from) then
 		--print("to: "..tostring(attr.to).." from: "..tostring(attr.from));
 		log("warn", (session.to_host or "(unknown)").." failed to specify 'to' or 'from' hostname as per RFC");