mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 01:12:24 +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:

committed by
Brian Tiger Chow

parent
da20887e76
commit
6807b6e98e
@ -101,10 +101,20 @@ func initCmd(c *commander.Command, inp []string) error {
|
|||||||
}
|
}
|
||||||
cfg.Identity.PeerID = id.Pretty()
|
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)
|
path, err := u.TildeExpansion(config.DefaultConfigFilePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
err = config.WriteConfigFile(path, cfg)
|
err = config.WriteConfigFile(path, cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user