Skip to content

Commit 375f7c1

Browse files
authored
Remove broken bootstrap nodes (#326)
* Remove broken bootstrap nodes
1 parent c2252c6 commit 375f7c1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

internal/dhtcrawler/config.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package dhtcrawler
22

33
import (
4-
adht "github.com/anacrolix/dht/v2"
54
"time"
65
)
76

@@ -25,10 +24,20 @@ type Config struct {
2524
func NewDefaultConfig() Config {
2625
return Config{
2726
ScalingFactor: 10,
28-
BootstrapNodes: adht.DefaultGlobalBootstrapHostPorts,
27+
BootstrapNodes: defaultBootstrapNodes,
2928
ReseedBootstrapNodesInterval: time.Minute,
3029
SaveFilesThreshold: 100,
3130
SavePieces: false,
3231
RescrapeThreshold: time.Hour * 24 * 30,
3332
}
3433
}
34+
35+
// https://github.com/anacrolix/dht/blob/92b36a3fa7a37a15e08684337b47d8d0fb322ab6/dht.go#L106
36+
var defaultBootstrapNodes = []string{
37+
"router.utorrent.com:6881",
38+
"router.bittorrent.com:6881",
39+
"dht.transmissionbt.com:6881",
40+
"dht.aelitis.com:6881", // Vuze
41+
"router.silotis.us:6881", // IPv6
42+
"dht.libtorrent.org:25401", // @arvidn's
43+
}

0 commit comments

Comments
 (0)