cmd/route: secure
This commit is contained in:
parent
6529dec9db
commit
a224f2fe0c
|
@ -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"})
|
||||||
|
|
Loading…
Reference in New Issue