Skip to content

Commit 4ea59f1

Browse files
Merge 9770ff6 into 8edaee9
2 parents 8edaee9 + 9770ff6 commit 4ea59f1

File tree

1 file changed

+3
-1
lines changed
  • iroh-dns-server/src/http

1 file changed

+3
-1
lines changed

iroh-dns-server/src/http/tls.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ async fn load_certs(
148148
async fn load_secret_key(
149149
filename: impl AsRef<Path>,
150150
) -> Result<rustls::pki_types::PrivateKeyDer<'static>> {
151-
let keyfile = std::fs::read(filename.as_ref()).context("cannot open secret key file")?;
151+
let keyfile = tokio::fs::read(filename.as_ref())
152+
.await
153+
.context("cannot open secret key file")?;
152154
let mut reader = std::io::Cursor::new(keyfile);
153155

154156
loop {

0 commit comments

Comments
 (0)