mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +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) ===
|
=== Deluge 1.1.5 - (16 March 2009) ===
|
||||||
==== Core ====
|
==== Core ====
|
||||||
* Fix config file saving when no current config file exists
|
* Fix config file saving when no current config file exists
|
||||||
|
|
|
@ -522,7 +522,7 @@ class Torrent:
|
||||||
tracker = self.trackers[0]["url"]
|
tracker = self.trackers[0]["url"]
|
||||||
|
|
||||||
if tracker:
|
if tracker:
|
||||||
url = urlparse(tracker)
|
url = urlparse(tracker.replace("udp://", "http://"))
|
||||||
if hasattr(url, "hostname"):
|
if hasattr(url, "hostname"):
|
||||||
host = (url.hostname or 'DHT')
|
host = (url.hostname or 'DHT')
|
||||||
# Check if hostname is an IP address and just return it if that's the case
|
# Check if hostname is an IP address and just return it if that's the case
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue