diff --git a/consul/discovery.go b/consul/discovery.go index 3d03914..06af929 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -74,7 +74,7 @@ func (s *Service) Register() error { ID: s.GetID(), // Kind: consul.ServiceKindConnectProxy, Name: s.Name, - Address: s.domain, + Address: s.Address, Port: s.port, Tags: s.getTags(), // Connect: &consul.AgentServiceConnect{Native: true},