Software /
code /
prosody
Comparison
plugins/mod_s2s/mod_s2s.lua @ 5474:11f08a27c417
mod_s2s: Add missing space
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 15 Apr 2013 19:37:15 +0200 |
parent | 5454:5f69fddf6fb9 |
child | 5505:0b6a99e6c1b1 |
comparison
equal
deleted
inserted
replaced
5472:7c631ef43b11 | 5474:11f08a27c417 |
---|---|
640 end | 640 end |
641 | 641 |
642 if must_secure and not session.cert_identity_status then | 642 if must_secure and not session.cert_identity_status then |
643 module:log("warn", "Forbidding insecure connection to/from %s", host); | 643 module:log("warn", "Forbidding insecure connection to/from %s", host); |
644 if session.direction == "incoming" then | 644 if session.direction == "incoming" then |
645 session:close({ condition = "not-authorized", text = "Your server's certificate is invalid, expired, or not trusted by"..session.to_host }); | 645 session:close({ condition = "not-authorized", text = "Your server's certificate is invalid, expired, or not trusted by "..session.to_host }); |
646 else -- Close outgoing connections without warning | 646 else -- Close outgoing connections without warning |
647 session:close(false); | 647 session:close(false); |
648 end | 648 end |
649 return false; | 649 return false; |
650 end | 650 end |