mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 12:04:51 +00:00
Fix udp trackers being classified as DHT source
This commit is contained in:
parent
c5cc5c283b
commit
850807ca43
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue