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:
mkinney 2019-11-06 11:01:08 -08:00 committed by Raul Jordan
parent e9bd530221
commit 0be4e6fed8

View File

@ -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