From 585e062804d45d01c688be27c29b4e38b35531cf Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 15 Jun 2022 14:23:18 +1000 Subject: [PATCH] torrent serve: Add some reasonable tracker defaults --- cmd/torrent/serve.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)