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
Signed-off-by: Piotr Tabor <[email protected]>
  • Loading branch information
ptabor committed Jun 16, 2022
1 parent b0b8fc8 commit 6214e2d
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 6214e2d

Please sign in to comment.