Skip to content

Commit

Permalink
Small stuff. (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
kixelated authored Oct 13, 2023
1 parent 5a0357b commit 1749989
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dev/pub
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ ffmpeg -hide_banner -v quiet \
-i "$MEDIA" \
-an \
-f mp4 -movflags empty_moov+frag_every_frame+separate_moof+omit_tfhd_offset - \
| RUST_LOG=info cargo run --bin moq-pub -- "$URL" "$@"
| cargo run --bin moq-pub -- "$URL" "$@"
2 changes: 1 addition & 1 deletion moq-pub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ url = "2"
ring = "0.16"
rustls = "0.21"
rustls-pemfile = "1"
rustls-native-certs = "0.6"

# Async stuff
tokio = { version = "1", features = ["full"] }
Expand All @@ -35,7 +36,6 @@ clap = { version = "4", features = ["derive"] }
log = { version = "0.4", features = ["std"] }
env_logger = "0.9"
mp4 = "0.13"
rustls-native-certs = "0.6"
anyhow = { version = "1", features = ["backtrace"] }
serde_json = "1"
rfc6381-codec = "0.1"
Expand Down
5 changes: 0 additions & 5 deletions moq-relay/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ impl Server {
}

// For local development, we'll accept our own certificate.
client_roots
.add(certs.first().unwrap())
.context("failed to add our cert to roots")?;

let mut client_config = rustls::ClientConfig::builder()
.with_safe_defaults()
.with_root_certificates(client_roots)
Expand All @@ -84,7 +80,6 @@ impl Server {
.with_no_client_auth()
.with_single_cert(certs, key)?;

server_config.max_early_data_size = u32::MAX;
client_config.alpn_protocols = vec![webtransport_quinn::ALPN.to_vec()];
server_config.alpn_protocols = vec![webtransport_quinn::ALPN.to_vec()];

Expand Down

0 comments on commit 1749989

Please sign in to comment.