mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +00:00
Fix #790 tracker hosts not correct for some 3rd-level domain names
This commit is contained in:
parent
79e6ecfbac
commit
4f4d5dfae3
2 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ Deluge 1.1.3 - (In Development)
|
||||||
* Fix issue when initializing gettext that would prevent deluge from starting
|
* Fix issue when initializing gettext that would prevent deluge from starting
|
||||||
* Fix logging exceptions when starting the daemon
|
* Fix logging exceptions when starting the daemon
|
||||||
* Fix displaying errors when a torrent is Checking
|
* 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)
|
Deluge 1.1.2 - (31 January 2009)
|
||||||
Core:
|
Core:
|
||||||
|
|
|
@ -536,7 +536,7 @@ class Torrent:
|
||||||
|
|
||||||
parts = host.split(".")
|
parts = host.split(".")
|
||||||
if len(parts) > 2:
|
if len(parts) > 2:
|
||||||
if parts[-2] in ("co", "com"):
|
if parts[-2] in ("co", "com", "net", "org"):
|
||||||
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