diff --git a/connect/resolver.go b/connect/resolver.go index f2e574553..bb3e079ed 100644 --- a/connect/resolver.go +++ b/connect/resolver.go @@ -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