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 11package dhtcrawler
22
33import (
4- adht "github.com/anacrolix/dht/v2"
54 "time"
65)
76
@@ -25,10 +24,20 @@ type Config struct {
2524func 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+ }
You can’t perform that action at this time.
0 commit comments