mirror of
https://github.com/markqvist/LXMF.git
synced 2025-11-19 23:13:04 -05:00
Break peering when peer moves outside auto-peering range
This commit is contained in:
parent
81a6d503a3
commit
6446db4f11
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue