s2smanager: Remove the infamous 'as per RFC' log message entirely (it happens too often to be useful)

Thu, 18 Mar 2010 01:15:25 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 18 Mar 2010 01:15:25 +0000
changeset 2889
c1e6df7cf56a
parent 2886
3baee526d714
child 2891
955a12ac985e

s2smanager: Remove the infamous 'as per RFC' log message entirely (it happens too often to be useful)

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Tue Mar 09 20:14:47 2010 +0500
+++ b/core/s2smanager.lua	Thu Mar 18 01:15:25 2010 +0000
@@ -359,12 +359,6 @@
 		session.secure = true;
 	end
 	
-	if session.version >= 1.0 and not (attr.to and attr.from) then
-		
-		(session.log or log)("warn", "Remote of stream "..(session.from_host or "(unknown)").."->"..(session.to_host or "(unknown)")
-			.." failed to specify to (%s) and/or from (%s) hostname as per RFC", tostring(attr.to), tostring(attr.from));
-	end
-	
 	if session.direction == "incoming" then
 		-- Send a reply stream header
 		session.to_host = attr.to and nameprep(attr.to);

mercurial