Return real origin when using a proxy (fixes detecting TURN sockets)
commit7b9965d180eb7cfffe503e66d3fb8856c7c163bb
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Mon, 13 Feb 2012 20:12:36 +0000 (13 15:12 -0500)
committerYouness Alaoui <youness.alaoui@collabora.co.uk>
Mon, 13 Feb 2012 20:12:38 +0000 (13 15:12 -0500)
tree53cb303f3671a26349d2900c6f02a7deb2a9f938
parentc03ac48b9a1c27d20ee7a393c0e16a77801be2df
Return real origin when using a proxy (fixes detecting TURN sockets)
If using a proxy, the 'from' of all packets were of the proxy server
instead of the turn server, causing the check for turn to fail.
Thanks to Madaro Livio.
socket/http.c
socket/socks5.c