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 {