1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-24 17:17:40 +01:00

[PM-2101] Added UseTcpOnly flag to setup for DNS resolution client (#2899)

* Added TcpOnly flag to setup for DNS resolution client.

* Fixed syntax.

* Linting
This commit is contained in:
Todd Martin 2023-05-03 09:07:04 -04:00 committed by GitHub
parent 2c604d0fe5
commit 2d4d96733d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,7 +184,7 @@ public static class ServiceCollectionExtensions
services.AddSingleton<ILicensingService, LicensingService>(); services.AddSingleton<ILicensingService, LicensingService>();
services.AddSingleton<ILookupClient>(_ => services.AddSingleton<ILookupClient>(_ =>
{ {
var options = new LookupClientOptions { Timeout = TimeSpan.FromSeconds(15) }; var options = new LookupClientOptions { Timeout = TimeSpan.FromSeconds(15), UseTcpOnly = true };
return new LookupClient(options); return new LookupClient(options);
}); });
services.AddSingleton<IDnsResolverService, DnsResolverService>(); services.AddSingleton<IDnsResolverService, DnsResolverService>();