diff --git a/consul/discovery.go b/consul/discovery.go index 62fc417..63c0be1 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -71,7 +71,11 @@ func (s *Service) Register() error { Address: s.Address, Port: s.port, Tags: s.getTags(), - Connect: &consul.AgentServiceConnect{SidecarService: &consul.AgentServiceRegistration{}}, + Connect: &consul.AgentServiceConnect{ + SidecarService: &consul.AgentServiceRegistration{ + Port: s.port, + } + }, Check: &consul.AgentServiceCheck{ TTL: s.ttl.String(), Status: "passing",