Mercurial > prosody-modules
view mod_disable_tls/mod_disable_tls.lua @ 4480:dad0367d33e8
mod_rest: Revert leftover of unfinished ?query mapping
Idea was to allow second level data fields to be passed as query
parameters, i.e. /rest/command/{to}/?command=execute&node=foobar but
that's still a work in progress, so reverted here for now.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 28 Feb 2021 20:59:53 +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);