fix(relay): print development cert path
The manual MVP run depends on copying the generated development certificate from the relay host to both the gateway and Windows client. The relay already wrote the file, but the startup log only said that the relay was listening. Print the configured development certificate path after a successful bind/write and align TESTING.md's expected relay output with that line. This gives the tester an explicit file path to copy before starting the gateway and client. Test Plan: - cargo fmt --check - cargo test -p lanparty-relay - timeout 2s cargo run -q -p lanparty-relay -- --listen 127.0.0.1:0 --dev-cert-der-out <tmp-cert> - cargo test --workspace - cargo clippy --workspace --all-targets -- -D warnings Refs: MVP relay certificate handoff
This commit is contained in:
@@ -14,6 +14,12 @@ async fn run(config: RelayConfig) -> anyhow::Result<()> {
|
||||
config.max_clients_per_room()
|
||||
);
|
||||
let server = RelayServer::bind(&config)?;
|
||||
if let Some(path) = config.dev_cert_der_out() {
|
||||
println!(
|
||||
"lanparty-relay wrote development certificate to {}",
|
||||
path.display()
|
||||
);
|
||||
}
|
||||
println!("lanparty-relay listening on {}", server.local_addr()?);
|
||||
server.run_until_shutdown().await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user