# HG changeset patch # User Emmanuel Gil Peyrot # Date 1500229529 -3600 # Node ID 49a682d6b427df0f0d2676d7d45fbbab24f2124e # Parent 048a8343329565d67c7686c5076141d009d8a102 mod_register: Add ::1 to the default registration_whitelist. diff -r 048a83433295 -r 49a682d6b427 plugins/mod_register.lua --- 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);