Fixed #613: Don't pull nodeinfo from blocked servers!

This commit is contained in:
Andrew Godwin 2023-07-22 10:41:58 -06:00
parent 759d5ac052
commit aac75dd4c3

View file

@ -33,6 +33,10 @@ class DomainStates(StateGraph):
@classmethod @classmethod
def handle_outdated(cls, instance: "Domain"): def handle_outdated(cls, instance: "Domain"):
# Don't talk to servers we've blocked
if instance.blocked:
return cls.updated
# Pull their nodeinfo URI
info = instance.fetch_nodeinfo() info = instance.fetch_nodeinfo()
if info: if info:
instance.nodeinfo = info.dict() instance.nodeinfo = info.dict()