Compare commits
No commits in common. "053f042e00538aabf24a1e85d46e8ed2e8ae9d92" and "5533ec0d2bedea7eb6a6a8057fd9902f0c795628" have entirely different histories.
053f042e00
...
5533ec0d2b
1 changed files with 1 additions and 6 deletions
|
@ -8,12 +8,6 @@ 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();
|
||||
|
@ -37,6 +31,7 @@ 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