Merge pull request #94 from filecoin-project/listen-to-all-ifaces
listen to all ifaces when exposing internal apis
This commit is contained in:
commit
01d6554a00
@ -105,7 +105,7 @@ func PrepareBootstrapper(t *TestEnvironment) (*Bootstrapper, error) {
|
|||||||
node.Online(),
|
node.Online(),
|
||||||
node.Repo(repo.NewMemory(nil)),
|
node.Repo(repo.NewMemory(nil)),
|
||||||
node.Override(new(modules.Genesis), modtest.MakeGenesisMem(&genesisBuffer, genesisTemplate)),
|
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),
|
withListenAddress(bootstrapperIP),
|
||||||
withBootstrapper(nil),
|
withBootstrapper(nil),
|
||||||
withPubsubConfig(true, pubsubTracerMaddr),
|
withPubsubConfig(true, pubsubTracerMaddr),
|
||||||
|
@ -64,7 +64,7 @@ func PrepareClient(t *TestEnvironment) (*LotusClient, error) {
|
|||||||
node.FullAPI(&n.FullApi),
|
node.FullAPI(&n.FullApi),
|
||||||
node.Online(),
|
node.Online(),
|
||||||
node.Repo(nodeRepo),
|
node.Repo(nodeRepo),
|
||||||
withApiEndpoint("/ip4/127.0.0.1/tcp/1234"),
|
withApiEndpoint("/ip4/0.0.0.0/tcp/1234"),
|
||||||
withGenesis(genesisMsg.Genesis),
|
withGenesis(genesisMsg.Genesis),
|
||||||
withListenAddress(clientIP),
|
withListenAddress(clientIP),
|
||||||
withBootstrapper(genesisMsg.Bootstrapper),
|
withBootstrapper(genesisMsg.Bootstrapper),
|
||||||
|
@ -170,7 +170,7 @@ func PrepareMiner(t *TestEnvironment) (*LotusMiner, error) {
|
|||||||
node.Online(),
|
node.Online(),
|
||||||
node.Repo(nodeRepo),
|
node.Repo(nodeRepo),
|
||||||
withGenesis(genesisMsg.Genesis),
|
withGenesis(genesisMsg.Genesis),
|
||||||
withApiEndpoint("/ip4/127.0.0.1/tcp/1234"),
|
withApiEndpoint("/ip4/0.0.0.0/tcp/1234"),
|
||||||
withListenAddress(minerIP),
|
withListenAddress(minerIP),
|
||||||
withBootstrapper(genesisMsg.Bootstrapper),
|
withBootstrapper(genesisMsg.Bootstrapper),
|
||||||
withPubsubConfig(false, pubsubTracer),
|
withPubsubConfig(false, pubsubTracer),
|
||||||
@ -192,7 +192,7 @@ func PrepareMiner(t *TestEnvironment) (*LotusMiner, error) {
|
|||||||
node.Online(),
|
node.Online(),
|
||||||
node.Repo(minerRepo),
|
node.Repo(minerRepo),
|
||||||
node.Override(new(api.FullNode), n.FullApi),
|
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),
|
withMinerListenAddress(minerIP),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user