Compare commits
2 commits
5533ec0d2b
...
053f042e00
Author | SHA1 | Date | |
---|---|---|---|
053f042e00 | |||
79b17313e7 |
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue