cmd/torrent/main.go | 7 ++++++- diff --git a/cmd/torrent/main.go b/cmd/torrent/main.go index 3a35b7acc3815edfab4ca1051f052a053b0d272c..bf21b22b5110c328bdec31cd0d88f5276133abb1 100644 --- a/cmd/torrent/main.go +++ b/cmd/torrent/main.go @@ -10,6 +10,7 @@ "os" "strings" "time" + "github.com/anacrolix/dht" _ "github.com/anacrolix/envpprof" "github.com/anacrolix/tagflag" "github.com/dustin/go-humanize" @@ -148,7 +149,11 @@ func main() { log.SetFlags(log.LstdFlags | log.Lshortfile) tagflag.Parse(&flags) - var clientConfig torrent.Config + clientConfig := torrent.Config{ + DHTConfig: dht.ServerConfig{ + StartingNodes: dht.GlobalBootstrapAddrs, + }, + } if flags.Mmap { clientConfig.DefaultStorage = storage.NewMMap("") }