Changeset

1482:25be5fde250f

mod_disable_tls: Default to empty set if disable_tls_ports not present in config (fixes traceback)
author Matthew Wild <mwild1@gmail.com>
date Sun, 10 Aug 2014 13:08:56 +0100
parents 1481:e10e74583b5f
children 1483:90fe03e65d2c
files mod_disable_tls/mod_disable_tls.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_disable_tls/mod_disable_tls.lua	Sun Aug 10 13:05:17 2014 +0100
+++ b/mod_disable_tls/mod_disable_tls.lua	Sun Aug 10 13:08:56 2014 +0100
@@ -1,4 +1,4 @@
-local disable_tls_ports = module:get_option_set("disable_tls_ports");
+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