diff options
-rw-r--r-- | plugins/mod_dialback.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua index 38d16b60..c81484a9 100644 --- a/plugins/mod_dialback.lua +++ b/plugins/mod_dialback.lua @@ -25,8 +25,7 @@ local dialback_secret = sha256_hash(module:get_option_string("dialback_secret", 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 |