From 3fc1191f6e48b7d8d2caa09b22d879c2109fdc69 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 8 Jul 2023 02:22:28 +0200 Subject: [PATCH] register fix 2 --- consul/discovery.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index d2c1814..4e602fe 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -73,13 +73,14 @@ func (s *Service) Register() error { Port: s.port, Tags: s.getTags(), Connect: &consul.AgentServiceConnect{ - SidecarService: &consul.AgentServiceRegistration{ - Port: s.port, - }, - }, - Proxy: &consul.AgentServiceConnectProxyConfig{ - DestinationServiceName: s.Name, + Native: true, + // SidecarService: &consul.AgentServiceRegistration{ + // Port: s.port, + // }, }, + // Proxy: &consul.AgentServiceConnectProxyConfig{ + // DestinationServiceName: s.Name, + // }, Check: &consul.AgentServiceCheck{ TTL: s.ttl.String(), Status: "passing",