mod_onions: Add comment explaining s2s-check-certificate handler
authorMatthew Wild <mwild1@gmail.com>
Thu, 17 Mar 2022 20:24:43 +0000
changeset 4912 44be2c6087f3
parent 4911 4aecf78cc39d
child 4913 6ce42aacad42
mod_onions: Add comment explaining s2s-check-certificate handler
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);