aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-07-16 19:25:15 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-07-16 19:25:15 +0100
commit2398e05edf392d547bae4feb28bf40ab84bbeb47 (patch)
tree00a2e70eb9f6826b168a53580b7829ccc97dec1e /plugins
parentb5181287340558c4e97cd2a3b08b84840cd80c9a (diff)
downloadprosody-2398e05edf392d547bae4feb28bf40ab84bbeb47.tar.gz
prosody-2398e05edf392d547bae4feb28bf40ab84bbeb47.zip
mod_bosh: Add ::1 to the default trusted_proxies.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 5ef0dfb6..9ef4a41e 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -48,7 +48,7 @@ local cross_domain = module:get_option("cross_domain_bosh", false);
if cross_domain == true then cross_domain = "*"; end
if type(cross_domain) == "table" then cross_domain = table.concat(cross_domain, ", "); end
-local trusted_proxies = module:get_option_set("trusted_proxies", {"127.0.0.1"})._items;
+local trusted_proxies = module:get_option_set("trusted_proxies", { "127.0.0.1", "::1" })._items;
local function get_ip_from_request(request)
local ip = request.conn:ip();