diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-02-06 09:01:11 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-02-06 09:01:11 +0000 |
commit | 4f4d5dfae32af9cc379654ccde1956d54cc6d38d (patch) | |
tree | f27cbb79c93868a2c592a6663230b25438fdd6d9 | |
parent | 79e6ecfbacd98998ce29277a88e2bfe7f104fe1c (diff) | |
download | deluge-4f4d5dfae32af9cc379654ccde1956d54cc6d38d.tar.gz deluge-4f4d5dfae32af9cc379654ccde1956d54cc6d38d.tar.bz2 deluge-4f4d5dfae32af9cc379654ccde1956d54cc6d38d.zip |
Fix #790 tracker hosts not correct for some 3rd-level domain names
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | deluge/core/torrent.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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:]) |