From 91c27b30bf31b7a18be3f91771fb38f7540aa420 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Tue, 16 Jul 2024 19:13:40 +0200 Subject: [PATCH] fix in consul register method --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 05d44e7..82b672d 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.Address, + Address: s.domain, Port: s.port, Tags: s.getTags(), // Connect: &consul.AgentServiceConnect{Native: true},