Updates
This commit is contained in:
1 parent
596bb7ed3d
commit
a0813b6e84
3 files changed
+53
-45
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user