aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-07-16 19:25:29 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-07-16 19:25:29 +0100
commit9c2aad71193849bf605a576b068405b0afe7da0e (patch)
treea69cf20753ef88b2820c30a39c14087e74a389cf
parent2398e05edf392d547bae4feb28bf40ab84bbeb47 (diff)
downloadprosody-9c2aad71193849bf605a576b068405b0afe7da0e.tar.gz
prosody-9c2aad71193849bf605a576b068405b0afe7da0e.zip
mod_register: Add ::1 to the default registration_whitelist.
-rw-r--r--plugins/mod_register.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua
index e999428d..fd5339d9 100644
--- a/plugins/mod_register.lua
+++ b/plugins/mod_register.lua
@@ -182,7 +182,7 @@ end
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);