mirror of https://github.com/hashicorp/consul
Refactor resolver logic to be clearer
parent
41a29a469e
commit
e7a345cb9a
|
@ -171,9 +171,9 @@ func (cr *ConsulResolver) resolveServiceEntry(entry *api.ServiceEntry) (string,
|
||||||
}
|
}
|
||||||
port := entry.Service.Port
|
port := entry.Service.Port
|
||||||
|
|
||||||
service := entry.Service.Service
|
service := entry.Service.ProxyDestination
|
||||||
if entry.Service.Connect != nil && !entry.Service.Connect.Native {
|
if entry.Service.Connect != nil && entry.Service.Connect.Native {
|
||||||
service = entry.Service.ProxyDestination
|
service = entry.Service.Service
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate the expected CertURI
|
// Generate the expected CertURI
|
||||||
|
|
Loading…
Reference in New Issue