Don't request ipv6 trackers if not supported by the client
This commit is contained in:
parent
06d679d1ca
commit
e7de562b93
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ class SiteAnnouncer(object):
|
|||
if not self.site.connection_server.tor_manager.enabled:
|
||||
trackers = [tracker for tracker in trackers if ".onion" not in tracker]
|
||||
|
||||
if "ipv6" not in self.site.connection_server.supported_ip_types:
|
||||
trackers = [tracker for tracker in trackers if helper.getIpType(self.getAddressParts(tracker)["ip"]) != "ipv6"]
|
||||
|
||||
return trackers
|
||||
|
||||
def getAnnouncingTrackers(self, mode):
|
||||
|
|
Loading…
Reference in a new issue