plugins/mod_dialback.lua
branch0.11
changeset 11561 6be890ca492e
parent 11560 6f56170ea986
child 11562 d0e9ffccdef9
--- 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