# HG changeset patch # User Kim Alvefur # Date 1561299386 -7200 # Node ID 6be890ca492e19a5bf8228d847a671dc53886453 # Parent 6f56170ea986a424706a2cc7806d17e1caf264cf mod_dialback: Use correct host for certificate check (fixes #1381) diff -r 6f56170ea986 -r 6be890ca492e plugins/mod_dialback.lua --- 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