diff --git a/consul/discovery.go b/consul/discovery.go index 2ed9ea9..254ea27 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -77,6 +77,9 @@ func (s *Service) Register() error { // Port: s.port, // }, }, + Proxy: &consul.AgentServiceConnectProxyConfig{ + DestinationServiceName: s.Name, + }, Check: &consul.AgentServiceCheck{ TTL: s.ttl.String(), Status: "passing",