Desctiption-Docs
Some checks failed
CI / checks (push) Failing after 1m51s

This commit is contained in:
Alex Emmet 2026-07-02 20:21:12 +02:00
commit 5bfcccc056
5 changed files with 36 additions and 5 deletions

View file

@ -41,7 +41,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Connecting to 127.0.0.1:8080 ...");
let config = ClientConfig::new("https://127.0.0.1:8080").with_pinned_pem(cert_pem);
let config = ClientConfig::new("https://127.0.0.1:8080")
.with_pinned_pem(cert_pem)
.with_description("MTP example client");
let server_bundle = host_public_key.clone();
let (conn, keyring) =

View file

@ -98,8 +98,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Server listening on {}", host.local_addr());
while let Some(conn) = host.accept().await? {
let desc = conn
.description
.as_deref()
.unwrap_or("(no description)");
println!(
"\n--- New authenticated connection (version {}) ---",
"\n--- New connection (version {}, description: {desc}) ---",
conn.version
);
println!("Client ID: {}", conn.client_id);