Software /
code /
prosody
Changeset
11557:6be890ca492e 0.11
mod_dialback: Use correct host for certificate check (fixes #1381)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 23 Jun 2019 16:16:26 +0200 |
parents | 11556:6f56170ea986 |
children | 11558:d0e9ffccdef9 |
files | plugins/mod_dialback.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_dialback.lua Wed May 12 14:00:53 2021 +0100 +++ b/plugins/mod_dialback.lua Sun Jun 23 16:16:26 2019 +0200 @@ -25,8 +25,7 @@ local dwd = module:get_option_boolean("dialback_without_dialback", false); --- Helper to check that a session peer's certificate is valid -function check_cert_status(session) - local host = session.direction == "outgoing" and session.to_host or session.from_host +function check_cert_status(session, host) local conn = session.conn:socket() local cert if conn.getpeercertificate then