From c177133daf1f50955cfaa114bed98475de2a7b5a Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Tue, 4 Jul 2023 18:46:00 +0200 Subject: [PATCH] consul register fix --- consul/discovery.go | 3 +++ 1 file changed, 3 insertions(+) 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",