From 2d4d96733d08993e62ebdeeefb0fb412bf463902 Mon Sep 17 00:00:00 2001 From: Todd Martin <106564991+trmartin4@users.noreply.github.com> Date: Wed, 3 May 2023 09:07:04 -0400 Subject: [PATCH] [PM-2101] Added UseTcpOnly flag to setup for DNS resolution client (#2899) * Added TcpOnly flag to setup for DNS resolution client. * Fixed syntax. * Linting --- src/SharedWeb/Utilities/ServiceCollectionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SharedWeb/Utilities/ServiceCollectionExtensions.cs b/src/SharedWeb/Utilities/ServiceCollectionExtensions.cs index fbea8faa9c..b01be7a28b 100644 --- a/src/SharedWeb/Utilities/ServiceCollectionExtensions.cs +++ b/src/SharedWeb/Utilities/ServiceCollectionExtensions.cs @@ -184,7 +184,7 @@ public static class ServiceCollectionExtensions services.AddSingleton(); services.AddSingleton(_ => { - var options = new LookupClientOptions { Timeout = TimeSpan.FromSeconds(15) }; + var options = new LookupClientOptions { Timeout = TimeSpan.FromSeconds(15), UseTcpOnly = true }; return new LookupClient(options); }); services.AddSingleton();