Skip to content
  • Johan Sternerup's avatar
    webrtcice: Add webrtc ALPN header for HTTP proxy · 5b64cfac
    Johan Sternerup authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    Section 3.4 in RFC8835 states that if a WebRTC endpoint uses an HTTP
    proxy to access the Internet it MUST include the "ALPN" header. This
    commit adds this header.
    
    By default the ALPN used when connecting to the TURN/TCP server via a
    proxy is set to "webrtc". It can be changed by adding an alpn url
    option for the http-proxy. For example:
    
    http://user:pass@my.http.proxy.com:8080?alpn=c-webrtc
    
    This will add the header "ALPN: c-webrtc" to the HTTP proxy CONNECT
    request.
    
    Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4212>
    5b64cfac