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:
parent
2c604d0fe5
commit
2d4d96733d
@ -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>();
|
||||||
|
Loading…
Reference in New Issue
Block a user