From fc58c057dcb18ea99fdb9ca016619f58da3cde78 Mon Sep 17 00:00:00 2001 From: domrichardson <100129001+domrichardson@users.noreply.github.com> Date: Mon, 15 Jun 2026 14:39:26 +0100 Subject: [PATCH] Updates --- internal/grpc/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/grpc/client.go b/internal/grpc/client.go index e6ee16c..306e49b 100644 --- a/internal/grpc/client.go +++ b/internal/grpc/client.go @@ -3,6 +3,7 @@ package grpcclient import ( "context" "crypto/tls" + "strings" "time" "github.com/mrhid6/keymanager/agent/internal/grpc/pb" @@ -22,6 +23,9 @@ type Client struct { } func New(serverURL string, useTLS bool) (*Client, error) { + serverURL = strings.TrimPrefix(serverURL, "https://") + serverURL = strings.TrimPrefix(serverURL, "http://") + var dialOpts []grpc.DialOption if useTLS {