aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2017-07-28 23:47:38 +0100
committerMatthew Wild <mwild1@gmail.com>2017-07-28 23:47:38 +0100
commitab793182e77752bd08cf0347a95298312693563b (patch)
tree3d0d78194ab5828d67c07bac2f07209054155de9 /plugins/mod_bosh.lua
parentaca11d8afe0573dd1573356bd14edd4bb823a187 (diff)
parent8049a9c15fdbf78f0284240ef532e90228e6d4ad (diff)
downloadprosody-ab793182e77752bd08cf0347a95298312693563b.tar.gz
prosody-ab793182e77752bd08cf0347a95298312693563b.zip
Merge 0.10 -> trunk
Diffstat (limited to 'plugins/mod_bosh.lua')
-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 c2809143..cc591be7 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -49,7 +49,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();