Hello,

A small fix to prevent throwing an exception when the X-Forwarded-For
header includes invalid values. Repro with just
curl $BOSH_URL -X POST -H "X-Forwarded-For: something-invalid"

Oct 27 16:55:32 http.server    error    Traceback[httpserver]:
/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:297: in function 'is_trusted_proxy'
    /usr/lib/prosody/modules/mod_http.lua:319: in function
'get_forwarded_connection_info'
    /usr/lib/prosody/modules/mod_http.lua:334: in function
</usr/lib/prosody/modules/mod_http.lua:330>


Regards,
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/CAFCpYuxs1HbMXoSvMOfM5DiHmCTg29OxX0BndO1O6-Jw_7d1ng%40mail.gmail.com.

Attachment: catch-ip-parse-errors.patch
Description: Binary data

Reply via email to