Fix SOCKS5 usage for IMAP

Connect to SOCKS5 server rather than target server
and send TCP connect command.
This commit is contained in:
link2xt
2023-01-18 10:12:18 +00:00
parent cf0349acc8
commit 42c709e7b1
4 changed files with 20 additions and 15 deletions

View File

@@ -315,7 +315,7 @@ impl Imap {
)
.await
} else {
Client::connect_insecure_socks5((imap_server, imap_port), socks5_config.clone())
Client::connect_insecure_socks5(imap_server, imap_port, socks5_config.clone())
.await
}
} else if config.lp.security == Socket::Starttls {