Software /
code /
prosody
Changeset
8183:49a682d6b427
mod_register: Add ::1 to the default registration_whitelist.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 16 Jul 2017 19:25:29 +0100 (2017-07-16) |
parents | 8182:048a83433295 |
children | 8184:dbcae15b4282 |
files | plugins/mod_register.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_register.lua Sun Jul 16 19:25:15 2017 +0100 +++ b/plugins/mod_register.lua Sun Jul 16 19:25:29 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);