]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 5 Oct 2023 00:29:07 +0000 (02:29 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 5 Oct 2023 00:29:07 +0000 (02:29 +0200)
- 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

index 3d6f57c662e1c8a5569639bedcc07a91812c54fe..c18d5430deca9166494dbbb00f3aef9d50ec4338 100644 (file)
@@ -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)