1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 00:39:31 +08:00

added mars.i.ipfs.io as a bootstrap node

In the future, let's have a (signed) list of bootstrap
nodes. Ideally just a list of ipfs multiaddrs (with node.ID)
This commit is contained in:
Juan Batiz-Benet
2014-09-20 07:30:55 -07:00
committed by Brian Tiger Chow
parent da20887e76
commit 6807b6e98e

View File

@ -101,10 +101,20 @@ func initCmd(c *commander.Command, inp []string) error {
}
cfg.Identity.PeerID = id.Pretty()
// Use these hardcoded bootstrap peers for now.
cfg.Peers = []*config.SavedPeer{
&config.SavedPeer{
// mars.i.ipfs.io
PeerID: "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
Address: "/ip4/104.131.131.82/tcp/4001",
},
}
path, err := u.TildeExpansion(config.DefaultConfigFilePath)
if err != nil {
return err
}
err = config.WriteConfigFile(path, cfg)
if err != nil {
return err