comparison plugins/mod_register.lua @ 8185:e89320b8a789

Merge 0.10 -> trunk
author Matthew Wild <mwild1@gmail.com>
date Fri, 28 Jul 2017 23:47:38 +0100
parents 49a682d6b427
children 4354f556c5db
comparison
equal deleted inserted replaced
8181:79f73af4c410 8185:e89320b8a789
180 end 180 end
181 end 181 end
182 182
183 local min_seconds_between_registrations = module:get_option_number("min_seconds_between_registrations"); 183 local min_seconds_between_registrations = module:get_option_number("min_seconds_between_registrations");
184 local whitelist_only = module:get_option_boolean("whitelist_registration_only"); 184 local whitelist_only = module:get_option_boolean("whitelist_registration_only");
185 local whitelisted_ips = module:get_option_set("registration_whitelist", { "127.0.0.1" })._items; 185 local whitelisted_ips = module:get_option_set("registration_whitelist", { "127.0.0.1", "::1" })._items;
186 local blacklisted_ips = module:get_option_set("registration_blacklist", {})._items; 186 local blacklisted_ips = module:get_option_set("registration_blacklist", {})._items;
187 187
188 local throttle_max = module:get_option_number("registration_throttle_max", min_seconds_between_registrations and 1); 188 local throttle_max = module:get_option_number("registration_throttle_max", min_seconds_between_registrations and 1);
189 local throttle_period = module:get_option_number("registration_throttle_period", min_seconds_between_registrations); 189 local throttle_period = module:get_option_number("registration_throttle_period", min_seconds_between_registrations);
190 local throttle_cache_size = module:get_option_number("registration_throttle_cache_size", 100); 190 local throttle_cache_size = module:get_option_number("registration_throttle_cache_size", 100);