mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
refactor: Move proxy_config out of ConfiguredLoginParam (#6712)
We want to store ConfiguredLoginParam in the database as Json per-login, but proxy_config should be global for all logins.
This commit is contained in:
@@ -90,13 +90,14 @@ impl Smtp {
|
||||
let lp = ConfiguredLoginParam::load(context)
|
||||
.await?
|
||||
.context("Not configured")?;
|
||||
let proxy_config = ProxyConfig::load(context).await?;
|
||||
self.connect(
|
||||
context,
|
||||
&lp.smtp,
|
||||
&lp.smtp_password,
|
||||
&lp.proxy_config,
|
||||
&proxy_config,
|
||||
&lp.addr,
|
||||
lp.strict_tls(),
|
||||
lp.strict_tls(proxy_config.is_some()),
|
||||
lp.oauth2,
|
||||
)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user