Skip to content

Commit

Permalink
chore: add non DNS bootstrap addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-tra committed Oct 21, 2022
1 parent 748f9f4 commit cc0f996
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmd/client/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,18 @@ type Host struct {
func InitHost(c *cli.Context, privKey crypto.PrivKey) (*Host, error) {
log.Info("Starting libp2p host...")

nonDNS := []string{
"/ip4/147.75.83.83/tcp/4001/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb",
"/ip4/147.75.77.187/tcp/4001/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa",
"/ip4/147.75.109.29/tcp/4001/p2p/QmZa1sAxajnQjVM8WjWXoMbmPd7NsWhfKsPkErzpm9wGkp",
}
nonDNSaddrInfo, err := parseBootstrapPeers(nonDNS)
if err != nil {
panic(err)
}

bpAddrInfos := kaddht.GetDefaultBootstrapPeerAddrInfos()
bpAddrInfos = append(nonDNSaddrInfo, bpAddrInfos...)
if c.IsSet("bootstrap-peers") {
addrInfos, err := parseBootstrapPeers(c.StringSlice("bootstrap-peers"))
if err != nil {
Expand Down

0 comments on commit cc0f996

Please sign in to comment.