]> Sergey Matveev's repositories - btrtrc.git/commitdiff
torrent serve: Add some reasonable tracker defaults
authorMatt Joiner <anacrolix@gmail.com>
Wed, 15 Jun 2022 04:23:18 +0000 (14:23 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 15 Jun 2022 04:23:18 +0000 (14:23 +1000)
cmd/torrent/serve.go

index 5546511c0d19c4a1fddea233676f7f4f13b1a3f5..a6a47aae3bf349a71f904adf5ef0a17cb89e616c 100644 (file)
@@ -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)