mirror of
https://github.com/markqvist/LXMF
synced 2026-11-22 23:10:36 +00:00
Break peering when peer moves outside auto-peering range
This commit is contained in:
1 parent
81a6d503a3
commit
6446db4f11
1 file changed
+5
@@ -74,6 +74,11 @@ class LXMFPropagationAnnounceHandler:
|
||||
propagation_stamp_cost_flexibility=propagation_stamp_cost_flexibility,
|
||||
metadata=metadata)
|
||||
|
||||
else:
|
||||
if destination_hash in self.lxmrouter.peers:
|
||||
RNS.log(f"Peer {self.lxmrouter.peers[destination_hash]} moved outside auto-peering range, breaking peering...")
|
||||
self.lxmrouter.unpeer(destination_hash, node_timebase)
|
||||
|
||||
elif propagation_enabled == False:
|
||||
self.lxmrouter.unpeer(destination_hash, node_timebase)
|
||||
|
||||
|
||||
Reference in new issue
Block a user