diff mod_onions/mod_onions.lua @ 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 824b0d7fa883
children fa415cd9eeca
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);