From 6214e2d36e15dbe13d6c235d304a873c90f8d934 Mon Sep 17 00:00:00 2001 From: Piotr Tabor Date: Wed, 15 Jun 2022 23:12:56 +0200 Subject: [PATCH] Use proper grpc schema (unix:file) for unix sockets. Signed-off-by: Piotr Tabor --- server/embed/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/embed/serve.go b/server/embed/serve.go index 595a4e4d2b06..cb3d1c72d9df 100644 --- a/server/embed/serve.go +++ b/server/embed/serve.go @@ -234,7 +234,7 @@ func (sctx *serveCtx) registerGateway(opts []grpc.DialOption) (*gw.ServeMux, err addr := sctx.addr if network := sctx.network; network == "unix" { // explicitly define unix network for gRPC socket support - addr = fmt.Sprintf("%s://%s", network, addr) + addr = fmt.Sprintf("%s:%s", network, addr) } opts = append(opts, grpc.WithDefaultCallOptions([]grpc.CallOption{