rtsp: calculate the local ip address in accept
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 4 Apr 2013 10:16:47 +0000 (12:16 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 4 Apr 2013 10:16:47 +0000 (12:16 +0200)
commit4826ec4e4d40dd3c793d3dda9d0aedb9b4c39d46
tree5034764f4b658a0ab6938209f2ddbd21116a2011
parentc78cbd0d95a2608656b739d6c17e57f49433e288
rtsp: calculate the local ip address in accept

Calculate the local IP address in the accept call. We need to place this IP
address in the GET reply in the X-Server-IP-Address header so that the client
knows where to send the POST to in case of tunneled RTSP. Before this patch
it used the client IP address, which would make the client send the POST request
to itself and fail.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=697092
gst-libs/gst/rtsp/gstrtspconnection.c