mirror of
https://github.com/chatmail/core.git
synced 2026-05-01 20:36:31 +03:00
fix #616 -- allow invalid certs for smtp and imap connections -- this is the behaviour of C-core.
This commit is contained in:
@@ -110,6 +110,8 @@ impl Client {
|
||||
) -> imap::error::Result<Self> {
|
||||
let stream = net::TcpStream::connect(addr)?;
|
||||
let tls = native_tls::TlsConnector::builder()
|
||||
// see also: https://github.com/deltachat/deltachat-core-rust/issues/203
|
||||
.danger_accept_invalid_certs(true)
|
||||
.danger_accept_invalid_hostnames(true)
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user