cmd/route: secure

This commit is contained in:
Cadey Ratio 2017-04-28 22:21:57 -07:00
parent 6529dec9db
commit a224f2fe0c
1 changed files with 0 additions and 1 deletions

View File

@ -140,7 +140,6 @@ func main() {
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),
grpc.WithInsecure(),
grpc.WithPerRPCCredentials(creds)) grpc.WithPerRPCCredentials(creds))
if err != nil { if err != nil {
ln.Fatal(ln.F{"err": err, "action": "grpc.Dial"}) ln.Fatal(ln.F{"err": err, "action": "grpc.Dial"})