Make sure the client verifies the TLS
This commit is contained in:
parent
71a0ef9920
commit
cf1dff2814
1 changed files with 1 additions and 3 deletions
|
@ -187,9 +187,7 @@ func InnerMain(command string, args ...string) error {
|
|||
return fmt.Errorf("no host set in %s, set one with '%s config {HOST}'", ConfigPath(), os.Args[0])
|
||||
}
|
||||
|
||||
tls := &tls.Config{
|
||||
InsecureSkipVerify: true,
|
||||
}
|
||||
tls := &tls.Config{}
|
||||
|
||||
// Set up the server
|
||||
clientConn, err := grpc.Dial(fmt.Sprintf("%s:%d", config.Host, gRPCport), grpc.WithTransportCredentials(credentials.NewTLS(tls)))
|
||||
|
|
Loading…
Add table
Reference in a new issue