mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Fix udp trackers being classified as DHT source
This commit is contained in:
parent
99374972b0
commit
fe04c46252
2 changed files with 5 additions and 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue