From 8f4583bc23841804da4719045665875ab938251d Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 8 Mar 2009 20:19:19 +0000 Subject: [PATCH] Fix #790 tracker hosts not correct for some .uk trackers --- deluge/core/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 5741f655e..126acf4aa 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -533,7 +533,7 @@ class Torrent: parts = host.split(".") if len(parts) > 2: - if parts[-2] in ("co", "com", "net", "org"): + if parts[-2] in ("co", "com", "net", "org") or parts[-1] in ("uk"): host = ".".join(parts[-3:]) else: host = ".".join(parts[-2:])