mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
feat: allow autoconfig when SOCKS5 is enabled
Since HTTP module supports SOCKS5 now, there is no reason not to request autoconfig XML and outlook configuration anymore.
This commit is contained in:
@@ -274,14 +274,7 @@ async fn configure(ctx: &Context, param: &mut LoginParam) -> Result<()> {
|
|||||||
} else {
|
} else {
|
||||||
// Try receiving autoconfig
|
// Try receiving autoconfig
|
||||||
info!(ctx, "no offline autoconfig found");
|
info!(ctx, "no offline autoconfig found");
|
||||||
param_autoconfig = if socks5_enabled {
|
param_autoconfig = get_autoconfig(ctx, param, ¶m_domain).await;
|
||||||
// Currently we can't do http requests through socks5, to not leak
|
|
||||||
// the ip, just don't do online autoconfig
|
|
||||||
info!(ctx, "socks5 enabled, skipping autoconfig");
|
|
||||||
None
|
|
||||||
} else {
|
|
||||||
get_autoconfig(ctx, param, ¶m_domain).await
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
param_autoconfig = None;
|
param_autoconfig = None;
|
||||||
|
|||||||
Reference in New Issue
Block a user