From 6c290eb66b26f0e616185afd71afef9a7bc37f84 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 20 Jul 2024 14:43:47 +0200 Subject: [PATCH] tls fix --- consul/discovery.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index bb04d53..6ff32cc 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -70,9 +70,8 @@ func (s *Service) GetID() string { } func (s *Service) GetFullAddr() string { - isTLS := s.port == 443 proto := "http" - if isTLS { + if s.tls { proto = "https" } return fmt.Sprintf("%s://%s:%d/", proto, s.Address, s.port)