From 4a6f438db2b9b346e4d8dafb928d7179255afa46 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Sat, 15 Feb 2020 21:57:31 +0000 Subject: [PATCH] normalise proxy name (#1203) --- grpc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grpc.go b/grpc.go index 272719c..e90386a 100644 --- a/grpc.go +++ b/grpc.go @@ -52,6 +52,10 @@ func (g *grpcClient) next(request client.Request, opts client.CallOptions) (sele // get proxy if prx := os.Getenv("MICRO_PROXY"); len(prx) > 0 { + // default name + if prx == "service" { + prx = "go.micro.proxy" + } service = prx }