# HG changeset patch # User Matthew Wild # Date 1647548683 0 # Node ID 44be2c6087f35de5fb34985b83b7903f22226772 # Parent 4aecf78cc39d2a53f1503f4ccb6041b26622f13a mod_onions: Add comment explaining s2s-check-certificate handler diff -r 4aecf78cc39d -r 44be2c6087f3 mod_onions/mod_onions.lua --- a/mod_onions/mod_onions.lua Tue Mar 15 21:59:51 2022 +0100 +++ b/mod_onions/mod_onions.lua Thu Mar 17 20:24:43 2022 +0000 @@ -268,6 +268,9 @@ module:hook_global("s2s-check-certificate", function (event) local host = event.host; if host and host:find("%.onion$") then + -- This cancels the event chain without reporting any cert + -- validation results. The connection will typically proceed + -- to auth using dialback. return true; end end);