From: Matt Joiner Date: Mon, 28 Aug 2017 10:54:37 +0000 (+1000) Subject: cmd/torrent: Include global dht starting nodes X-Git-Tag: v1.0.0~425 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=756375879bc19ab6a4ee6f904bbb38bd6016e79b;p=btrtrc.git cmd/torrent: Include global dht starting nodes --- diff --git a/cmd/torrent/main.go b/cmd/torrent/main.go index 3a35b7ac..bf21b22b 100644 --- a/cmd/torrent/main.go +++ b/cmd/torrent/main.go @@ -10,6 +10,7 @@ import ( "strings" "time" + "github.com/anacrolix/dht" _ "github.com/anacrolix/envpprof" "github.com/anacrolix/tagflag" "github.com/dustin/go-humanize" @@ -148,7 +149,11 @@ var flags = struct { 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("") }