diff --git a/Cargo.lock b/Cargo.lock index e5e188a..709404d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1984,7 +1984,7 @@ dependencies = [ [[package]] name = "xwt-test-server" -version = "0.4.0" +version = "0.4.1" dependencies = [ "color-eyre", "envfury", diff --git a/crates/xwt-test-server/Cargo.toml b/crates/xwt-test-server/Cargo.toml index 47e9813..00c2436 100644 --- a/crates/xwt-test-server/Cargo.toml +++ b/crates/xwt-test-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xwt-test-server" -version = "0.4.0" +version = "0.4.1" edition = "2021" resolver = "2" license = "MIT" @@ -26,7 +26,7 @@ thiserror = "1" tokio = { version = "1", default-features = false, features = ["rt-multi-thread"] } tracing = "0.1" tracing-subscriber = { version = "0.3", optional = true } -wtransport = { version = "0.1.12", default-features = false } +wtransport = { version = "0.1.13", default-features = false, features = ["self-signed"] } [features] bin = ["dep:color-eyre", "dep:envfury", "dep:tracing-subscriber", "tokio/macros"] diff --git a/crates/xwt-test-server/src/lib.rs b/crates/xwt-test-server/src/lib.rs index 9556da8..d85e6fb 100644 --- a/crates/xwt-test-server/src/lib.rs +++ b/crates/xwt-test-server/src/lib.rs @@ -27,7 +27,7 @@ pub async fn endpoint( ) }); - match identity.certificate_chain().first() { + match identity.certificate_chain().as_ref().first() { Some(cert) => { let sha256_fingerpint = xwt_cert_fingerprint::Sha256::compute_for_der(cert.der()); tracing::info!(message = "using tls certificate", %sha256_fingerpint);