From 672a350f312c31f758247128ec6e8d12ada62c1a Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 29 Jun 2023 15:15:03 +0200 Subject: [PATCH] Recognization of ping request for consul --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 26df615..59b5967 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -61,7 +61,7 @@ func (s *Service) GetID() string { } func (s *Service) GetFullAddr() string { - return fmt.Sprintf("https://%s:%d/", s.Address, s.port) + return fmt.Sprintf("https://%s:%d/?name=%s", s.Address, s.port, s.Name) } func (s *Service) Register() error {