Skip to content

Commit

Permalink
Remove broken bootstrap nodes (#326)
Browse files Browse the repository at this point in the history
* Remove broken bootstrap nodes
  • Loading branch information
mgdigital authored Oct 15, 2024
1 parent c2252c6 commit 375f7c1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions internal/dhtcrawler/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package dhtcrawler

import (
adht "github.com/anacrolix/dht/v2"
"time"
)

Expand All @@ -25,10 +24,20 @@ type Config struct {
func NewDefaultConfig() Config {
return Config{
ScalingFactor: 10,
BootstrapNodes: adht.DefaultGlobalBootstrapHostPorts,
BootstrapNodes: defaultBootstrapNodes,
ReseedBootstrapNodesInterval: time.Minute,
SaveFilesThreshold: 100,
SavePieces: false,
RescrapeThreshold: time.Hour * 24 * 30,
}
}

// https://github.com/anacrolix/dht/blob/92b36a3fa7a37a15e08684337b47d8d0fb322ab6/dht.go#L106
var defaultBootstrapNodes = []string{
"router.utorrent.com:6881",
"router.bittorrent.com:6881",
"dht.transmissionbt.com:6881",
"dht.aelitis.com:6881", // Vuze
"router.silotis.us:6881", // IPv6
"dht.libtorrent.org:25401", // @arvidn's
}

0 comments on commit 375f7c1

Please sign in to comment.