diff --git a/server/embed/serve.go b/server/embed/serve.go index 595a4e4d2b0..cb3d1c72d9d 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{