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)