Software /
code /
prosody
Changeset
8182:048a83433295
mod_bosh: Add ::1 to the default trusted_proxies.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 16 Jul 2017 19:25:15 +0100 |
parents | 8177:f52cdad171b0 |
children | 8183:49a682d6b427 |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Thu Jul 06 10:41:28 2017 +0200 +++ b/plugins/mod_bosh.lua Sun Jul 16 19:25:15 2017 +0100 @@ -48,7 +48,7 @@ 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();