Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit fb33def

Browse files
committed
remove shuffle for ips
1 parent 066d430 commit fb33def

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ namespace Titanium.Web.Proxy.Network.Tcp
2222
/// </summary>
2323
internal class TcpConnectionFactory : IDisposable
2424
{
25-
private static readonly Random rnd = new Random();
2625

2726
//Tcp server connection pool cache
2827
private readonly ConcurrentDictionary<string, ConcurrentQueue<TcpServerConnection>> cache
@@ -296,7 +295,7 @@ private async Task<TcpServerConnection> createServerConnection(string remoteHost
296295

297296
session.TimeLine["Dns Resolved"] = DateTime.Now;
298297

299-
var ipAddresses = ipHostEntry.AddressList.OrderBy(x => rnd.Next()).ToArray();
298+
var ipAddresses = ipHostEntry.AddressList;
300299

301300
for (int i = 0; i < ipAddresses.Length; i++)
302301
{

0 commit comments

Comments
 (0)