Skip to content

Commit

Permalink
Update start.go
Browse files Browse the repository at this point in the history
  • Loading branch information
roy-dydx committed Jan 11, 2024
1 parent 7639381 commit 128eb0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,14 @@ func startInProcess(parentCtx context.Context, ctx *Context, clientCtx client.Co

var grpcSrvAddrString string
if grpcSrvAddr.Network() == "tcp" {
// Use original cosmos behavior for tcp.
_, port, err := net.SplitHostPort(grpcSrvAddr.String())
if err != nil {
return err
}
grpcSrvAddrString = fmt.Sprintf("127.0.0.1:%s", port)
} else {
// This can support UDS at the very least. See https://github.com/grpc/grpc/blob/master/doc/naming.md for details.
grpcSrvAddrString = fmt.Sprintf("%s://%s", grpcSrvAddr.Network(), grpcSrvAddr.String())
}
// If grpc is enabled, configure grpc client for grpc gateway.
Expand Down

0 comments on commit 128eb0a

Please sign in to comment.