summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--deluge/core/torrent.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1d5a541b4..fabe7f355 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@ Deluge 1.1.3 - (In Development)
* Fix issue when initializing gettext that would prevent deluge from starting
* Fix logging exceptions when starting the daemon
* Fix displaying errors when a torrent is Checking
+ * Fix #790 tracker hosts not correct for some 3rd-level domain names
Deluge 1.1.2 - (31 January 2009)
Core:
diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py
index a55288ed6..c72fd3fe1 100644
--- a/deluge/core/torrent.py
+++ b/deluge/core/torrent.py
@@ -536,7 +536,7 @@ class Torrent:
parts = host.split(".")
if len(parts) > 2:
- if parts[-2] in ("co", "com"):
+ if parts[-2] in ("co", "com", "net", "org"):
host = ".".join(parts[-3:])
else:
host = ".".join(parts[-2:])