From 22005d642f6e02562294f6f97fcac05d80a2dbc9 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Thu, 2 Jul 2020 15:20:04 +0200 Subject: [PATCH] listen to all ifaces when exposing internal apis --- lotus-soup/testkit/role_bootstrapper.go | 2 +- lotus-soup/testkit/role_client.go | 2 +- lotus-soup/testkit/role_miner.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lotus-soup/testkit/role_bootstrapper.go b/lotus-soup/testkit/role_bootstrapper.go index d7d6e293b..379a6739f 100644 --- a/lotus-soup/testkit/role_bootstrapper.go +++ b/lotus-soup/testkit/role_bootstrapper.go @@ -105,7 +105,7 @@ func PrepareBootstrapper(t *TestEnvironment) (*Bootstrapper, error) { node.Online(), node.Repo(repo.NewMemory(nil)), node.Override(new(modules.Genesis), modtest.MakeGenesisMem(&genesisBuffer, genesisTemplate)), - withApiEndpoint("/ip4/127.0.0.1/tcp/1234"), + withApiEndpoint("/ip4/0.0.0.0/tcp/1234"), withListenAddress(bootstrapperIP), withBootstrapper(nil), withPubsubConfig(true, pubsubTracerMaddr), diff --git a/lotus-soup/testkit/role_client.go b/lotus-soup/testkit/role_client.go index 399023306..fe41e5117 100644 --- a/lotus-soup/testkit/role_client.go +++ b/lotus-soup/testkit/role_client.go @@ -64,7 +64,7 @@ func PrepareClient(t *TestEnvironment) (*LotusClient, error) { node.FullAPI(&n.FullApi), node.Online(), node.Repo(nodeRepo), - withApiEndpoint("/ip4/127.0.0.1/tcp/1234"), + withApiEndpoint("/ip4/0.0.0.0/tcp/1234"), withGenesis(genesisMsg.Genesis), withListenAddress(clientIP), withBootstrapper(genesisMsg.Bootstrapper), diff --git a/lotus-soup/testkit/role_miner.go b/lotus-soup/testkit/role_miner.go index 2b2589cbe..c5a8897ed 100644 --- a/lotus-soup/testkit/role_miner.go +++ b/lotus-soup/testkit/role_miner.go @@ -170,7 +170,7 @@ func PrepareMiner(t *TestEnvironment) (*LotusMiner, error) { node.Online(), node.Repo(nodeRepo), withGenesis(genesisMsg.Genesis), - withApiEndpoint("/ip4/127.0.0.1/tcp/1234"), + withApiEndpoint("/ip4/0.0.0.0/tcp/1234"), withListenAddress(minerIP), withBootstrapper(genesisMsg.Bootstrapper), withPubsubConfig(false, pubsubTracer), @@ -192,7 +192,7 @@ func PrepareMiner(t *TestEnvironment) (*LotusMiner, error) { node.Online(), node.Repo(minerRepo), node.Override(new(api.FullNode), n.FullApi), - withApiEndpoint("/ip4/127.0.0.1/tcp/2345"), + withApiEndpoint("/ip4/0.0.0.0/tcp/2345"), withMinerListenAddress(minerIP), }