mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 00:46:43 +00:00
Refactor resolver logic to be clearer
This commit is contained in:
parent
41a29a469e
commit
e7a345cb9a
@ -171,9 +171,9 @@ func (cr *ConsulResolver) resolveServiceEntry(entry *api.ServiceEntry) (string,
|
||||
}
|
||||
port := entry.Service.Port
|
||||
|
||||
service := entry.Service.Service
|
||||
if entry.Service.Connect != nil && !entry.Service.Connect.Native {
|
||||
service = entry.Service.ProxyDestination
|
||||
service := entry.Service.ProxyDestination
|
||||
if entry.Service.Connect != nil && entry.Service.Connect.Native {
|
||||
service = entry.Service.Service
|
||||
}
|
||||
|
||||
// Generate the expected CertURI
|
||||
|
Loading…
x
Reference in New Issue
Block a user