From 8ffd27a6e172c27f621150890ec1e84db99cc1a6 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Sun, 9 Nov 2014 02:03:28 -0800 Subject: [PATCH] fix(init) inline bootstrap peers --- cmd/ipfs2/init.go | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/cmd/ipfs2/init.go b/cmd/ipfs2/init.go index ae639f510..e4b76d89a 100644 --- a/cmd/ipfs2/init.go +++ b/cmd/ipfs2/init.go @@ -63,15 +63,6 @@ var initCmd = &cmds.Command{ }, } -// Use these hardcoded bootstrap peers for now. -var defaultPeers = []*config.BootstrapPeer{ - &config.BootstrapPeer{ - // mars.i.ipfs.io - PeerID: "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", - Address: "/ip4/104.131.131.82/tcp/4001", - }, -} - // TODO add default welcome hash: eaa68bedae247ed1e5bd0eb4385a3c0959b976e4 func doInit(configRoot string, dspath string, force bool, nBitsForKeypair int) error { @@ -108,7 +99,13 @@ func doInit(configRoot string, dspath string, force bool, nBitsForKeypair int) e API: "/ip4/127.0.0.1/tcp/5001", }, - Bootstrap: defaultPeers, + Bootstrap: []*config.BootstrapPeer{ + &config.BootstrapPeer{ // Use these hardcoded bootstrap peers for now. + // mars.i.ipfs.io + PeerID: "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", + Address: "/ip4/104.131.131.82/tcp/4001", + }, + }, Datastore: ds,