Make sure the client verifies the TLS

This commit is contained in:
Marc Di Luzio 2020-07-26 23:41:52 +01:00
parent 71a0ef9920
commit cf1dff2814

View file

@ -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)))