From f22ca382c3daf67725c769f19c7098c45786bb84 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 5 Oct 2023 02:29:07 +0200 Subject: [PATCH] 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 --- fba/http/federation.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.39.5