mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Fix #790 tracker hosts not correct for some 3rd-level domain names
This commit is contained in:
parent
7cfc54728f
commit
89b5ca1cfe
@ -532,7 +532,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:])
|
||||
|
Loading…
x
Reference in New Issue
Block a user