diff --git a/connect/resolver.go b/connect/resolver.go index f2e5745531..bb3e079ed3 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