Small stuff. (#94)

This commit is contained in:
kixelated 2023-10-13 23:43:29 +09:00 committed by GitHub
parent 5a0357b111
commit 1749989dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View File

@ -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" "$@"

View File

@ -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"] }
@ -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"

View File

@ -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)
@ -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()];