Skip to content

Commit

Permalink
Add a few more common tracker subdomains
Browse files Browse the repository at this point in the history
Issue #51
  • Loading branch information
qu1ck committed Jul 26, 2023
1 parent 110f480 commit 45e1d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/torrent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function getTrackerStatus(torrent: TorrentBase): string {
}

const portRe = /:\d+$/;
const prefixRe = /^(tracker\d*|bt\d*)\.[^.]+\.[^.]+$/;
const prefixRe = /^((t|tr|tk|tracker|bt|open|opentracker)\d*)\.[^.]+\.[^.]+$/;

function getTorrentMainTracker(t: TorrentBase): string {
if (t.trackerStats.length === 0) return "<No trackers>";
Expand Down

0 comments on commit 45e1d2f

Please sign in to comment.