Added peering settings to lxmd

This commit is contained in:
Mark Qvist 2022-10-22 21:25:15 +02:00
commit 2d81b47b6a
2 changed files with 22 additions and 2 deletions

View file

@ -976,7 +976,8 @@ class LXMRouter:
remote_hash = remote_destination.hash
if not remote_hash in self.peers:
self.peer(remote_hash, remote_timebase)
if self.autopeer and RNS.Transport.hops_to(remote_hash) <= self.autopeer_maxdepth:
self.peer(remote_hash, remote_timebase)
messages = data[1]
for lxmf_data in messages: