Fix udp trackers being classified as DHT source

This commit is contained in:
Andrew Resch 2009-03-21 18:07:19 +00:00
parent 99374972b0
commit fe04c46252
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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