From e7a345cb9a4fa943a19e76022de5c35720296059 Mon Sep 17 00:00:00 2001 From: Paul Banks Date: Fri, 8 Jun 2018 22:41:16 +0100 Subject: [PATCH] Refactor resolver logic to be clearer --- connect/resolver.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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