comparison mod_manifesto/mod_manifesto.lua @ 1284:e36f82d7baae

mod_manifesto: Only check fully established incoming sessions
author Florian Zeitz <florob@babelmonkeys.de>
date Thu, 23 Jan 2014 19:30:27 +0100
parents 3e96889c0c36
children 9700c89f7bf6
comparison
equal deleted inserted replaced
1283:3e96889c0c36 1284:e36f82d7baae
64 if not remote_host_session.secure then 64 if not remote_host_session.secure then
65 bad = true; 65 bad = true;
66 end 66 end
67 end 67 end
68 for session in pairs(incoming_s2s) do 68 for session in pairs(incoming_s2s) do
69 if session.to_host == host and session.from_host == contact_host then 69 if session.to_host == host and session.from_host == contact_host and session.type == "s2sin" then
70 if not session.secure then 70 if not session.secure then
71 bad = true; 71 bad = true;
72 end 72 end
73 end 73 end
74 end 74 end