From f6a804029fd35caa94abdb393ea292033734e2a1 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 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