Software /
code /
prosody-modules
Comparison
mod_onions/mod_onions.lua @ 2306:ad40c094e7d7
mod_onions: Prevent s2s_secure_auth policy enforcement from rejecting .onion connections
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Sep 2016 13:20:49 +0200 |
parent | 2305:7db4d3f5fb73 |
child | 2344:c928b7ac75b7 |
comparison
equal
deleted
inserted
replaced
2305:7db4d3f5fb73 | 2306:ad40c094e7d7 |
---|---|
271 end | 271 end |
272 | 272 |
273 module:log("debug", "Onions ready and loaded"); | 273 module:log("debug", "Onions ready and loaded"); |
274 | 274 |
275 module:hook("route/remote", route_to_onion, 200); | 275 module:hook("route/remote", route_to_onion, 200); |
276 | |
277 module:hook_global("s2s-check-certificate", function (event) | |
278 local host = event.host; | |
279 if host and host:find("%.onion$") then | |
280 return true; | |
281 end | |
282 end); | |
283 |