Mercurial > prosody-modules
view mod_disable_tls/mod_disable_tls.lua @ 3830:63d8072dc864
mod_nodeinfo2: Mention mod_lastlog as a dep in the README
author | Maxime “pep” Buquet <pep@bouah.net> |
---|---|
date | Fri, 03 Jan 2020 16:33:04 +0100 |
parents | 25be5fde250f |
children |
line wrap: on
line source
local disable_tls_ports = module:get_option_set("disable_tls_ports", {}); module:hook("stream-features", function (event) if disable_tls_ports:contains(event.origin.conn:serverport()) then module:log("error", "Disabling TLS for client on port %d", event.origin.conn:serverport()); event.origin.conn.starttls = false; end end, 1000);