mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 04:30:04 +00:00
Fix grpc port for docker (#3945)
* do not die if user does not have git installed * should not listen on just localhost for grpc
This commit is contained in:
parent
e9bd530221
commit
0be4e6fed8
@ -479,7 +479,7 @@ func (b *BeaconNode) registerGRPCGateway(ctx *cli.Context) error {
|
||||
gatewayPort := ctx.GlobalInt(flags.GRPCGatewayPort.Name)
|
||||
if gatewayPort > 0 {
|
||||
selfAddress := fmt.Sprintf("127.0.0.1:%d", ctx.GlobalInt(flags.RPCPort.Name))
|
||||
gatewayAddress := fmt.Sprintf("127.0.0.1:%d", gatewayPort)
|
||||
gatewayAddress := fmt.Sprintf("0.0.0.0:%d", gatewayPort)
|
||||
return b.services.RegisterService(gateway.New(context.Background(), selfAddress, gatewayAddress, nil /*optional mux*/))
|
||||
}
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user