mod_restrict_xmpp: Treat archive query as a read despite using iq-set
XEP-0313 uses iq-set to initiate a query, but unlike many other uses of
iq-set, this does not mutate anything on the server, so it should not be
treated as a write request.
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);