mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix #790 tracker hosts not correct for some .uk trackers
This commit is contained in:
parent
849b579316
commit
8f4583bc23
1 changed files with 1 additions and 1 deletions
|
@ -533,7 +533,7 @@ class Torrent:
|
||||||
|
|
||||||
parts = host.split(".")
|
parts = host.split(".")
|
||||||
if len(parts) > 2:
|
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:])
|
host = ".".join(parts[-3:])
|
||||||
else:
|
else:
|
||||||
host = ".".join(parts[-2:])
|
host = ".".join(parts[-2:])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue