mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 12:58:16 +08:00
fixed issu where if service dropped out then leastconnection would not pick it up again (#195)
This commit is contained in:
@ -123,7 +123,7 @@ namespace Ocelot.LoadBalancer.LoadBalancers
|
||||
|
||||
foreach (var service in services)
|
||||
{
|
||||
var exists = _leases.FirstOrDefault(l => l.HostAndPort.ToString() == service.HostAndPort.ToString());
|
||||
var exists = _leases.FirstOrDefault(l => l.HostAndPort.DownstreamHost == service.HostAndPort.DownstreamHost && l.HostAndPort.DownstreamPort == service.HostAndPort.DownstreamPort);
|
||||
|
||||
if (exists == null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user