diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-03-21 18:07:19 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-03-21 18:07:19 +0000 |
commit | fe04c462520c0de5888d73fc656e4ff3cb2679df (patch) | |
tree | 79e49b5c1d017c64e75fab88f6a4accf0cfab006 | |
parent | 99374972b06888e8afbb3f8b27e1cb27b3f9ed2a (diff) | |
download | deluge-fe04c462520c0de5888d73fc656e4ff3cb2679df.tar.gz deluge-fe04c462520c0de5888d73fc656e4ff3cb2679df.tar.bz2 deluge-fe04c462520c0de5888d73fc656e4ff3cb2679df.zip |
Fix udp trackers being classified as DHT source
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | deluge/core/torrent.py | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +=== Deluge 1.1.6 - (In Development) === +==== Core ==== + * Fix udp trackers being classified as DHT source + === Deluge 1.1.5 - (16 March 2009) === ==== Core ==== * Fix config file saving when no current config file exists diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 5c0c1f178..a9702fc56 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -522,7 +522,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 |