Software /
code /
prosody-modules
Changeset
2728:11fdfd73a527
mod_captcha_registration: Add ::1 to the default registration_whitelist.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 16 Jul 2017 19:27:44 +0100 |
parents | 2727:91cbeb6ad987 |
children | 2729:7983335e88e9 |
files | mod_captcha_registration/modules/mod_register.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 +});