Compare commits

...

2 commits

View file

@ -8,6 +8,12 @@ use tokio_gemini::certs::{
verifier::{SelfsignedCert, SelfsignedCertVerifier},
};
//
// cargo add tokio_gemini
// cargo add tokio -F macros,rt-multi-thread,io-util,fs
// cargo add dashmap
//
#[tokio::main]
async fn main() -> Result<(), tokio_gemini::LibError> {
let mut args = std::env::args();
@ -31,7 +37,6 @@ async fn main() -> Result<(), tokio_gemini::LibError> {
.build()
} else {
tokio_gemini::Client::builder()
.with_webpki_roots() // TODO: do we really need them?
.with_selfsigned_cert_verifier(CertVerifier::init().await?)
.build()
};