File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
package dhtcrawler
2
2
3
3
import (
4
- adht "github.com/anacrolix/dht/v2"
5
4
"time"
6
5
)
7
6
@@ -25,10 +24,20 @@ type Config struct {
25
24
func NewDefaultConfig () Config {
26
25
return Config {
27
26
ScalingFactor : 10 ,
28
- BootstrapNodes : adht . DefaultGlobalBootstrapHostPorts ,
27
+ BootstrapNodes : defaultBootstrapNodes ,
29
28
ReseedBootstrapNodesInterval : time .Minute ,
30
29
SaveFilesThreshold : 100 ,
31
30
SavePieces : false ,
32
31
RescrapeThreshold : time .Hour * 24 * 30 ,
33
32
}
34
33
}
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
+ }
You can’t perform that action at this time.
0 commit comments