add ALPN and headers needed for meet.jit.si
This commit is contained in:
parent
72c3062010
commit
173ace76a6
|
@ -519,7 +519,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "gst-meet"
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"cocoa",
|
||||
|
|
|
@ -24,6 +24,7 @@ pub(crate) fn wss_connector(insecure: bool) -> Result<tokio_tungstenite::Connect
|
|||
.with_safe_defaults()
|
||||
.with_root_certificates(roots)
|
||||
.with_no_client_auth();
|
||||
config.alpn_protocols.push(b"http/1.1".to_vec());
|
||||
#[cfg(feature = "tls-insecure")]
|
||||
if insecure {
|
||||
config
|
||||
|
|
|
@ -87,6 +87,13 @@ impl Connection {
|
|||
.header("sec-websocket-protocol", "xmpp")
|
||||
.header("sec-websocket-key", base64::encode(&key))
|
||||
.header("sec-websocket-version", "13")
|
||||
.header("user-agent", "Mozilla/5.0 (X11; Linux aarch64; rv:99.0) Gecko/20100101 Firefox/99.0")
|
||||
.header("origin",
|
||||
format!("https://{}",
|
||||
websocket_url
|
||||
.host()
|
||||
.context("invalid WebSocket URL: missing host")?,
|
||||
))
|
||||
.header(
|
||||
"host",
|
||||
websocket_url
|
||||
|
|
Loading…
Reference in New Issue