Author: andar
Revision: 4914
Log:
Fix udp trackers being classified as DHT source
Diff:
Modified: branches/1.1.0_RC/ChangeLog
===================================================================
--- branches/1.1.0_RC/ChangeLog 2009-03-21 15:25:09 UTC (rev 4913)
+++ branches/1.1.0_RC/ChangeLog 2009-03-21 18:07:19 UTC (rev 4914)
@@ -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
Modified: branches/1.1.0_RC/deluge/core/torrent.py
===================================================================
--- branches/1.1.0_RC/deluge/core/torrent.py 2009-03-21 15:25:09 UTC (rev
4913)
+++ branches/1.1.0_RC/deluge/core/torrent.py 2009-03-21 18:07:19 UTC (rev
4914)
@@ -522,7 +522,7 @@
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
Modified: trunk/deluge/core/torrent.py
===================================================================
--- trunk/deluge/core/torrent.py 2009-03-21 15:25:09 UTC (rev 4913)
+++ trunk/deluge/core/torrent.py 2009-03-21 18:07:19 UTC (rev 4914)
@@ -518,7 +518,7 @@
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---