77894c4706
Make the relay binary bind a real Quinn endpoint instead of only printing its configuration. This is the next runtime step toward the public relay while still keeping connection handling out of this commit. The relay now builds a self-signed development TLS configuration, advertises the lanparty ALPN, enables QUIC datagram buffers, binds the configured UDP address, prints the actual local address, and waits for Ctrl-C before closing the endpoint. The generated certificate is explicitly a development placeholder; production certificate and client trust handling remain future work. The rustls dependency is pinned to the ring provider to match Quinn's selected crypto backend and avoid process-level provider ambiguity at runtime. Test Plan: - cargo fmt --check - cargo test --workspace - cargo clippy --workspace --all-targets -- -D warnings - timeout 2s cargo run -p lanparty-relay -- --listen 127.0.0.1:0 || test $? -eq 124 Refs: PLAN.md public relay QUIC data path Refs: https://docs.rs/quinn/0.11.9
17 lines
404 B
TOML
17 lines
404 B
TOML
[package]
|
|
name = "lanparty-relay"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
clap.workspace = true
|
|
lanparty-ctrl = { path = "../lanparty-ctrl" }
|
|
lanparty-obs = { path = "../lanparty-obs" }
|
|
lanparty-proto = { path = "../lanparty-proto" }
|
|
quinn.workspace = true
|
|
rcgen.workspace = true
|
|
rustls.workspace = true
|
|
thiserror.workspace = true
|
|
tokio.workspace = true
|