From: Matt Joiner Date: Wed, 15 Jun 2022 04:23:18 +0000 (+1000) Subject: torrent serve: Add some reasonable tracker defaults X-Git-Tag: v1.45.0~2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=585e062804d45d01c688be27c29b4e38b35531cf;p=btrtrc.git torrent serve: Add some reasonable tracker defaults --- diff --git a/cmd/torrent/serve.go b/cmd/torrent/serve.go index 5546511c..a6a47aae 100644 --- a/cmd/torrent/serve.go +++ b/cmd/torrent/serve.go @@ -60,7 +60,13 @@ func serve(ctx args.SubCmdCtx) error { defer to.Drop() err = to.MergeSpec(&torrent.TorrentSpec{ InfoBytes: mi.InfoBytes, - Trackers: [][]string{{}}, + Trackers: [][]string{{ + `wss://tracker.btorrent.xyz`, + `wss://tracker.openwebtorrent.com`, + "http://p4p.arenabg.com:1337/announce", + "udp://tracker.opentrackr.org:1337/announce", + "udp://tracker.openbittorrent.com:6969/announce", + }}, }) if err != nil { return fmt.Errorf("setting trackers: %w", err)