mod_captcha_registration: Add ::1 to the default registration_whitelist.
--- a/mod_captcha_registration/modules/mod_register.lua Fri Jul 14 18:06:17 2017 +0200
+++ b/mod_captcha_registration/modules/mod_register.lua Sun Jul 16 19:27:44 2017 +0100
@@ -205,7 +205,7 @@
local recent_ips = {};
local min_seconds_between_registrations = module:get_option("min_seconds_between_registrations");
local whitelist_only = module:get_option("whitelist_registration_only");
-local whitelisted_ips = module:get_option("registration_whitelist") or { "127.0.0.1" };
+local whitelisted_ips = module:get_option("registration_whitelist") or { "127.0.0.1", "::1" };
local blacklisted_ips = module:get_option("registration_blacklist") or {};
for _, ip in ipairs(whitelisted_ips) do whitelisted_ips[ip] = true; end
@@ -386,4 +386,4 @@
route = {
["GET /*"] = handle_http_request;
};
-});
\ No newline at end of file
+});