torrent serve: Add some reasonable tracker defaults

This commit is contained in:
Matt Joiner 2022-06-15 14:23:18 +10:00
parent f527180873
commit 585e062804
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782
1 changed files with 7 additions and 1 deletions

View 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)