Skip to content

Commit

Permalink
Use proper grpc schema (unix:file) for unix sockets.
Browse files Browse the repository at this point in the history
  • Loading branch information
ptabor committed Jun 15, 2022
1 parent 70cc0a8 commit 8149ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/embed/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 8149ed0

Please sign in to comment.