mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix #661 show proper tracker host when ending in .co.uk, .com.au, etc..
This commit is contained in:
parent
9b1ea3d8de
commit
86f9184320
1 changed files with 4 additions and 1 deletions
|
@ -521,7 +521,10 @@ class Torrent:
|
|||
host = (url.hostname or 'DHT')
|
||||
parts = host.split(".")
|
||||
if len(parts) > 2:
|
||||
host = ".".join(parts[-2:])
|
||||
if parts[-2] in ("co", "com"):
|
||||
host = ".".join(parts[-3:])
|
||||
else:
|
||||
host = ".".join(parts[-2:])
|
||||
return host
|
||||
return ""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue