From: Roland Häder Date: Thu, 5 Oct 2023 00:29:07 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f22ca382c3daf67725c769f19c7098c45786bb84;p=fba.git Continued: - don't attempt to fetch peers from fetch_instances() function when the software is a relay, command fetch_relay() should be used instead to fetch relay's peer list --- diff --git a/fba/http/federation.py b/fba/http/federation.py index 3d6f57c..c18d543 100644 --- a/fba/http/federation.py +++ b/fba/http/federation.py @@ -84,6 +84,11 @@ def fetch_instances(domain: str, origin: str, software: str, command: str, path: logger.debug("Adding new domain='%s',origin='%s',command='%s',path='%s',software='%s'", domain, origin, command, path, software) instances.add(domain, origin, command, path, software) + logger.debug("software='%s'", software) + if software_helper.is_relay(software): + logger.debug("software='%s' is a relay software - EXIT!", software) + return list() + logger.debug("Updating last_instance_fetch for domain='%s' ...", domain) instances.set_last_instance_fetch(domain)