Commit fb33defa authored by justcoding121's avatar justcoding121

remove shuffle for ips

parent 066d4309
...@@ -22,7 +22,6 @@ namespace Titanium.Web.Proxy.Network.Tcp ...@@ -22,7 +22,6 @@ namespace Titanium.Web.Proxy.Network.Tcp
/// </summary> /// </summary>
internal class TcpConnectionFactory : IDisposable internal class TcpConnectionFactory : IDisposable
{ {
private static readonly Random rnd = new Random();
//Tcp server connection pool cache //Tcp server connection pool cache
private readonly ConcurrentDictionary<string, ConcurrentQueue<TcpServerConnection>> cache private readonly ConcurrentDictionary<string, ConcurrentQueue<TcpServerConnection>> cache
...@@ -296,7 +295,7 @@ namespace Titanium.Web.Proxy.Network.Tcp ...@@ -296,7 +295,7 @@ namespace Titanium.Web.Proxy.Network.Tcp
session.TimeLine["Dns Resolved"] = DateTime.Now; session.TimeLine["Dns Resolved"] = DateTime.Now;
var ipAddresses = ipHostEntry.AddressList.OrderBy(x => rnd.Next()).ToArray(); var ipAddresses = ipHostEntry.AddressList;
for (int i = 0; i < ipAddresses.Length; i++) for (int i = 0; i < ipAddresses.Length; i++)
{ {
......
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