From 850807ca432dbb31a83e9789845ded7b762fed3f Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 21 Mar 2009 18:07:19 +0000 Subject: [PATCH] Fix udp trackers being classified as DHT source --- deluge/core/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 2b85eaec1..a3fbfef8a 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -518,7 +518,7 @@ class Torrent: tracker = self.trackers[0]["url"] if tracker: - url = urlparse(tracker) + url = urlparse(tracker.replace("udp://", "http://")) if hasattr(url, "hostname"): host = (url.hostname or 'DHT') # Check if hostname is an IP address and just return it if that's the case