Added peering settings to lxmd
This commit is contained in:
parent
1c4928a29b
commit
2d81b47b6a
2 changed files with 22 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue