Skip to content

Commit cbf54a0

Browse files
committed
Use proper grpc schema (unix:file) for unix sockets.
Signed-off-by: Piotr Tabor <[email protected]>
1 parent 17c1dcd commit cbf54a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/embed/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func (sctx *serveCtx) registerGateway(opts []grpc.DialOption) (*gw.ServeMux, err
234234
addr := sctx.addr
235235
if network := sctx.network; network == "unix" {
236236
// explicitly define unix network for gRPC socket support
237-
addr = fmt.Sprintf("%s://%s", network, addr)
237+
addr = fmt.Sprintf("%s:%s", network, addr)
238238
}
239239

240240
opts = append(opts, grpc.WithDefaultCallOptions([]grpc.CallOption{

0 commit comments

Comments
 (0)