Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Oct 11, 2023
1 parent 8501f83 commit 7908311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/smtp/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ async fn connect_to_host(

// hostname verification fails if it ends with '.', for example, using
// SOCKS5 proxies we can `io: incomplete` error.
let host: String = host.trim_end_matches('.').to_string();
let host = host.trim_end_matches('.').to_string();

let security: async_smtp::ClientSecurity = {
let security = {
let tls_params: ClientTlsParameters = ClientTlsParameters::new(
host.clone(),
TlsConnector::new()
Expand Down

0 comments on commit 7908311

Please sign in to comment.