|
|
@ -58,6 +58,9 @@ func defaultResolver(_ context.Context, entries []*api.ServiceEntry) []*registry |
|
|
|
} |
|
|
|
} |
|
|
|
endpoints = append(endpoints, addr.Address) |
|
|
|
endpoints = append(endpoints, addr.Address) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if len(endpoints) == 0 && entry.Service.Address != "" && entry.Service.Port != 0 { |
|
|
|
|
|
|
|
endpoints = append(endpoints, fmt.Sprintf("http://%s:%d", entry.Service.Address, entry.Service.Port)) |
|
|
|
|
|
|
|
} |
|
|
|
services = append(services, ®istry.ServiceInstance{ |
|
|
|
services = append(services, ®istry.ServiceInstance{ |
|
|
|
ID: entry.Service.ID, |
|
|
|
ID: entry.Service.ID, |
|
|
|
Name: entry.Service.Service, |
|
|
|
Name: entry.Service.Service, |
|
|
|