Commit f225e38d authored by justcoding121's avatar justcoding121

fix test fail

parent 4bab38de
...@@ -153,9 +153,14 @@ namespace Titanium.Web.Proxy ...@@ -153,9 +153,14 @@ namespace Titanium.Web.Proxy
} }
if (EnableTcpServerConnectionPrefetch) if (EnableTcpServerConnectionPrefetch)
{
IPAddress[] ipAddresses = null;
try
{ {
//make sure the host can be resolved before creating the prefetch task //make sure the host can be resolved before creating the prefetch task
var ipAddresses = await Dns.GetHostAddressesAsync(connectArgs.HttpClient.Request.RequestUri.Host); ipAddresses = await Dns.GetHostAddressesAsync(connectArgs.HttpClient.Request.RequestUri.Host);
}
catch (SocketException) { }
if (ipAddresses != null && ipAddresses.Length > 0) if (ipAddresses != null && ipAddresses.Length > 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment