Hi, Attached is a small patch to avoid throwing an exception when the Forwarded-For HTTP header contains something that doesn't parse as an IP address.
/usr/share/lua/5.2/prosody/util/ip.lua:233: attempt to index local 'ipA' (a nil value) stack traceback: /usr/share/lua/5.2/prosody/util/ip.lua:233: in function 'match_ip' /usr/lib/prosody/modules/mod_http.lua:272: in function 'is_trusted_proxy' /usr/lib/prosody/modules/mod_http.lua:294: in function 'get_forwarded_connection_info' Boris -- You received this message because you are subscribed to the Google Groups "prosody-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to prosody-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prosody-dev/CAFCpYuzWYcROLpvCyGXEWqsgAHO%2BBhDiYvu2H4%3DT8XUch_Cv7g%40mail.gmail.com.
do-not-match-invalid-ip.patch
Description: Binary data