changeset 4908:44be2c6087f3

mod_onions: Add comment explaining s2s-check-certificate handler
author Matthew Wild <mwild1@gmail.com>
date Thu, 17 Mar 2022 20:24:43 +0000
parents 4aecf78cc39d
children 6ce42aacad42
files mod_onions/mod_onions.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);