From 95cc7fd4fdbdee78d4c644133637d6f2d9031d19 Mon Sep 17 00:00:00 2001 From: kilo Date: Fri, 10 Nov 2017 22:46:22 +0100 Subject: [PATCH] ignore http trackers --- controllers/torrent/stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/torrent/stats.go b/controllers/torrent/stats.go index 0fed0818..973f8fbf 100644 --- a/controllers/torrent/stats.go +++ b/controllers/torrent/stats.go @@ -162,7 +162,7 @@ func GetTorrentTrackers(torrent *models.Torrent) []string { } for _, line := range config.Get().Torrents.Trackers.Default { - if !contains(Trackers, line) { + if !contains(Trackers, line) && strings.HasPrefix(tracker, "udp") { Trackers = append(Trackers, line) } }