diff --git a/consul/discovery.go b/consul/discovery.go index 6ff32cc..359d6ca 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -74,7 +74,7 @@ func (s *Service) GetFullAddr() string { if s.tls { proto = "https" } - return fmt.Sprintf("%s://%s:%d/", proto, s.Address, s.port) + return fmt.Sprintf("%s://%s:%d/", proto, s.domain, s.port) } func (s *Service) Register() error {