diff 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
line wrap: on
line diff
--- a/plugins/mod_register.lua	Thu Jul 06 11:24:36 2017 +0200
+++ b/plugins/mod_register.lua	Fri Jul 28 23:47:38 2017 +0100
@@ -182,7 +182,7 @@
 
 local min_seconds_between_registrations = module:get_option_number("min_seconds_between_registrations");
 local whitelist_only = module:get_option_boolean("whitelist_registration_only");
-local whitelisted_ips = module:get_option_set("registration_whitelist", { "127.0.0.1" })._items;
+local whitelisted_ips = module:get_option_set("registration_whitelist", { "127.0.0.1", "::1" })._items;
 local blacklisted_ips = module:get_option_set("registration_blacklist", {})._items;
 
 local throttle_max = module:get_option_number("registration_throttle_max", min_seconds_between_registrations and 1);