listen to all ifaces when exposing internal apis

This commit is contained in:
Anton Evangelatov 2020-07-02 15:20:04 +02:00
parent b601fd12f7
commit 22005d642f
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@ -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),
}