mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-12-26 06:05:48 +08:00
Use registered scheme from Eureka (#1087)
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
if (instances != null && instances.Any())
|
||||
{
|
||||
services.AddRange(instances.Select(i => new Service(i.ServiceId, new ServiceHostAndPort(i.Host, i.Port), "", "", new List<string>())));
|
||||
services.AddRange(instances.Select(i => new Service(i.ServiceId, new ServiceHostAndPort(i.Host, i.Port, i.Uri.Scheme), "", "", new List<string>())));
|
||||
}
|
||||
|
||||
return Task.FromResult(services);
|
||||
|
||||
Reference in New Issue
Block a user