Software / code / prosody
Diff
plugins/mod_register.lua @ 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 |
| parent | 8070:2db6746d2df8 |
| child | 8192:4354f556c5db |
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);