# HG changeset patch # User Emmanuel Gil Peyrot # Date 1500229664 -3600 # Node ID 11fdfd73a527c1889b58c33c46f662e117f5c75f # Parent 91cbeb6ad987b86e20645256e6c5f04929f8c22b mod_captcha_registration: Add ::1 to the default registration_whitelist. diff -r 91cbeb6ad987 -r 11fdfd73a527 mod_captcha_registration/modules/mod_register.lua --- 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 +});