From 1daea35e4ba98f1511b828b45a04ab636cd3216a Mon Sep 17 00:00:00 2001 From: Alisdair MacLeod Date: Wed, 28 Jan 2026 12:36:13 +0000 Subject: [PATCH] remove scheme information from management address when connecting via grpc --- proxy/server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proxy/server.go b/proxy/server.go index 62b3b6881..4ab57d358 100644 --- a/proxy/server.go +++ b/proxy/server.go @@ -78,7 +78,11 @@ func (s *Server) ListenAndServe(ctx context.Context, addr string) (err error) { // The very first thing to do should be to connect to the Management server. // Without this connection, the Proxy cannot do anything. - s.mgmtConn, err = grpc.NewClient(s.ManagementAddress, + mgmtURL, err := url.Parse(s.ManagementAddress) + if err != nil { + return fmt.Errorf("parse management address: %w", err) + } + s.mgmtConn, err = grpc.NewClient(mgmtURL.Host, grpc.WithTransportCredentials(insecure.NewCredentials()), // TODO: TLS needed here. grpc.WithKeepaliveParams(keepalive.ClientParameters{ Time: 20 * time.Second,