2
0
mirror of synced 2025-02-24 14:48:27 +00:00

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

View File

@ -60,7 +60,13 @@ func serve(ctx args.SubCmdCtx) error {
defer to.Drop() defer to.Drop()
err = to.MergeSpec(&torrent.TorrentSpec{ err = to.MergeSpec(&torrent.TorrentSpec{
InfoBytes: mi.InfoBytes, 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 { if err != nil {
return fmt.Errorf("setting trackers: %w", err) return fmt.Errorf("setting trackers: %w", err)