mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_s2s: Comment on why we avoid hostnames in stanza bounce messages
This commit is contained in:
parent
01a44e88db
commit
18813c2ffa
1 changed files with 2 additions and 0 deletions
|
@ -1015,6 +1015,8 @@ function check_auth_policy(event)
|
|||
-- In practice most cases are configuration mistakes or forgotten
|
||||
-- certificate renewals. We think it's better to let the other party
|
||||
-- know about the problem so that they can fix it.
|
||||
--
|
||||
-- Note: Bounce message must not include name of server, as it may leak half your JID in semi-anon MUCs.
|
||||
session:close({ condition = "not-authorized", text = "Your server's certificate "..reason },
|
||||
nil, "Remote server's certificate "..reason);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue