debugging

This commit is contained in:
Cadey Ratio 2017-04-28 22:32:01 -07:00
parent 0f7b2dbaf0
commit 8ad2a641f1
2 changed files with 5 additions and 2 deletions

View File

@ -136,7 +136,9 @@ func main() {
m := n.Machine(*grpcServer) m := n.Machine(*grpcServer)
connCreds := credentials.NewTLS(&tls.Config{}) connCreds := credentials.NewTLS(&tls.Config{
InsecureSkipVerify: true,
})
creds := jwtcreds.NewFromToken(m.Get("password")) creds := jwtcreds.NewFromToken(m.Get("password"))
conn, err := grpc.Dial(*grpcServer, conn, err := grpc.Dial(*grpcServer,
grpc.WithTransportCredentials(connCreds), grpc.WithTransportCredentials(connCreds),

View File

@ -91,7 +91,8 @@ func New(cfg Config) (*Server, error) {
go ts.ListenAndServe() go ts.ListenAndServe()
gs := grpc.NewServer(grpc.Creds(credentials.NewTLS(&tls.Config{ gs := grpc.NewServer(grpc.Creds(credentials.NewTLS(&tls.Config{
GetCertificate: m.GetCertificate, GetCertificate: m.GetCertificate,
InsecureSkipVerify: true,
}))) })))
proto.RegisterRoutesServer(gs, &Route{Server: s}) proto.RegisterRoutesServer(gs, &Route{Server: s})