From 153188db20f177aac241614702e47837af603149 Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 8 Aug 2024 22:19:27 +0000 Subject: [PATCH] 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. --- src/configure.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/configure.rs b/src/configure.rs index 8f9f2d500..9103c90be 100644 --- a/src/configure.rs +++ b/src/configure.rs @@ -274,14 +274,7 @@ async fn configure(ctx: &Context, param: &mut LoginParam) -> Result<()> { } else { // Try receiving autoconfig info!(ctx, "no offline autoconfig found"); - param_autoconfig = if socks5_enabled { - // 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 - } + param_autoconfig = get_autoconfig(ctx, param, ¶m_domain).await; } } else { param_autoconfig = None;