From 4ce9064fbbb1664d5485bb01dbd12bf4755380ec Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 17 Jul 2024 21:53:35 +0200 Subject: [PATCH] Fix: changed GetFullAddr() method --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index c9ab2af..679d25e 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -70,7 +70,7 @@ func (s *Service) GetFullAddr() string { if isTLS { proto = "https" } - return fmt.Sprintf("%s://%s:%d/", proto, s.domain, s.port) + return fmt.Sprintf("%s://%s:%d/", proto, s.Address, s.port) } func (s *Service) Register() error {