File

mod_disable_tls/mod_disable_tls.lua @ 6249:12a2989c7cc1

mod_limits_exception: obsolete diff --git a/mod_limits_exception/README.md b/mod_limits_exception/README.md --- a/mod_limits_exception/README.md +++ b/mod_limits_exception/README.md @@ -1,6 +1,8 @@ --- +labels: +- Stage-Obsolete summary: Allow specified JIDs to bypass rate limits -... +--- This module allows you to configure a list of JIDs that should be allowed to bypass rate limit restrictions.
author Menel <menel@snikket.de>
date Mon, 12 May 2025 10:57:17 +0200
parent 1482:25be5fde250f
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);