From c01098b672f13ab0f3a034271a3519cde5c723a2 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 29 Jun 2023 15:06:12 +0200 Subject: [PATCH] Now SVC must be working in full TLS mode --- api/http.go | 2 +- consul/discovery.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/http.go b/api/http.go index 8bb3d77..919cf02 100644 --- a/api/http.go +++ b/api/http.go @@ -91,5 +91,5 @@ func (c *HttpClient) getApiUrl(api string) string { apiAddr = api // default api run on 80 int port } - return "http://" + apiAddr + return "https://" + apiAddr } diff --git a/consul/discovery.go b/consul/discovery.go index 14bc1e1..26df615 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -61,7 +61,7 @@ func (s *Service) GetID() string { } func (s *Service) GetFullAddr() string { - return fmt.Sprintf("http://%s:%d/", s.Address, s.port) + return fmt.Sprintf("https://%s:%d/", s.Address, s.port) } func (s *Service) Register() error {