mod_s2s_never_encrypt_blacklist: stick to one code "punctuation" style.
authorMarco Cirillo <maranda@lightwitch.org>
Sat, 07 Jan 2012 18:12:38 +0000
changeset 531 2b71ba2739e0
parent 530 3cc17ef98be0
child 532 967ba17b1d2a
mod_s2s_never_encrypt_blacklist: stick to one code "punctuation" style.
mod_s2s_never_encrypt_blacklist/mod_s2s_never_encrypt_blacklist.lua
--- a/mod_s2s_never_encrypt_blacklist/mod_s2s_never_encrypt_blacklist.lua	Sat Jan 07 18:11:39 2012 +0000
+++ b/mod_s2s_never_encrypt_blacklist/mod_s2s_never_encrypt_blacklist.lua	Sat Jan 07 18:12:38 2012 +0000
@@ -1,16 +1,16 @@
 -- Filter out servers which gets choppy and buggy when it comes to starttls.
 
-local bad_servers = module:get_option_set("tls_s2s_blacklist");
-local bad_servers_ip = module:get_option_set("tls_s2s_blacklist_ip");
+local bad_servers = module:get_option_set("tls_s2s_blacklist")
+local bad_servers_ip = module:get_option_set("tls_s2s_blacklist_ip")
 
 local function disable_tls_for_baddies_in(event)
 	if bad_servers:contains(event.origin.to_host) or bad_servers_ip:contains(event.origin.conn:ip())
-		then event.origin.conn.starttls = nil; end
+		then event.origin.conn.starttls = nil end
 end
 
 local function disable_tls_for_baddies_out(event)
 	if bad_servers:contains(event.origin.from_host) or bad_servers_ip:contains(event.origin.conn:ip())
-		then event.origin.conn.starttls = nil; end
+		then event.origin.conn.starttls = nil end
 end
 
 module:hook("s2s-stream-features", disable_tls_for_baddies_out, 10)