debugging
This commit is contained in:
parent
0f7b2dbaf0
commit
8ad2a641f1
|
@ -136,7 +136,9 @@ func main() {
|
|||
|
||||
m := n.Machine(*grpcServer)
|
||||
|
||||
connCreds := credentials.NewTLS(&tls.Config{})
|
||||
connCreds := credentials.NewTLS(&tls.Config{
|
||||
InsecureSkipVerify: true,
|
||||
})
|
||||
creds := jwtcreds.NewFromToken(m.Get("password"))
|
||||
conn, err := grpc.Dial(*grpcServer,
|
||||
grpc.WithTransportCredentials(connCreds),
|
||||
|
|
|
@ -91,7 +91,8 @@ func New(cfg Config) (*Server, error) {
|
|||
go ts.ListenAndServe()
|
||||
|
||||
gs := grpc.NewServer(grpc.Creds(credentials.NewTLS(&tls.Config{
|
||||
GetCertificate: m.GetCertificate,
|
||||
GetCertificate: m.GetCertificate,
|
||||
InsecureSkipVerify: true,
|
||||
})))
|
||||
|
||||
proto.RegisterRoutesServer(gs, &Route{Server: s})
|
||||
|
|
Loading…
Reference in New Issue