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.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),
|
||||
|
@ -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),
|
||||
|
@ -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),
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user