# HG changeset patch # User Marco Cirillo # Date 1315003888 0 # Node ID 8963f4026f3a89741a71a4a7069747ca14111110 # Parent b3a5439a16bf479bbd4d9b04c580098e40b2e2f7 mod_s2s_never_encrypt_blacklist: first commit. diff -r b3a5439a16bf -r 8963f4026f3a mod_s2s_never_encrypt_blacklist/mod_s2s_never_encrypt_blacklist.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_s2s_never_encrypt_blacklist/mod_s2s_never_encrypt_blacklist.lua Fri Sep 02 22:51:28 2011 +0000 @@ -0,0 +1,9 @@ +-- Filter out servers which gets choppy and buggy when it comes to starttls. + +local bad_servers = module:get_option_set("tls_s2s_blacklist"); + +local function disable_tls_for_baddies(event) + if bad_servers:contains(event.origin.to_host) then event.origin.conn.starttls = nil; end +end + +module:hook("stanza/http://etherx.jabber.org/streams:features", disable_tls_for_baddies, 510)