1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-18 10:03:50 -05:00

Increased timeout for fetching source list a bunch

This commit is contained in:
Conner Turnbull 2025-04-28 11:56:56 -04:00
parent 866144d00e
commit 6eeb2b3835
No known key found for this signature in database

View File

@ -119,7 +119,7 @@ public static class ServiceCollectionExtensions
services.AddHttpClient("PhishingDomains", client => services.AddHttpClient("PhishingDomains", client =>
{ {
client.DefaultRequestHeaders.Add("User-Agent", globalSettings.SelfHosted ? "Bitwarden Self-Hosted" : "Bitwarden"); client.DefaultRequestHeaders.Add("User-Agent", globalSettings.SelfHosted ? "Bitwarden Self-Hosted" : "Bitwarden");
client.Timeout = TimeSpan.FromSeconds(30); client.Timeout = TimeSpan.FromSeconds(1000); // the source list is very slow
}); });
services.AddSingleton<AzurePhishingDomainStorageService>(); services.AddSingleton<AzurePhishingDomainStorageService>();