mirror of
https://github.com/markqvist/LXMF
synced 2026-11-27 23:00:33 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd3ace0885 | ||
|
|
ed4effdab7 | ||
|
|
2d1828513f | ||
|
|
505176b6ee |
No files matched your search
+4
-5
@@ -228,7 +228,7 @@ class LXMessage:
|
|||||||
# If no desired delivery method has been defined,
|
# If no desired delivery method has been defined,
|
||||||
# one will be chosen according to these rules:
|
# one will be chosen according to these rules:
|
||||||
if self.desired_method == None:
|
if self.desired_method == None:
|
||||||
self.desired_method == LXMessage.DIRECT
|
self.desired_method = LXMessage.DIRECT
|
||||||
# TODO: Expand rules to something more intelligent
|
# TODO: Expand rules to something more intelligent
|
||||||
|
|
||||||
if self.desired_method == LXMessage.OPPORTUNISTIC:
|
if self.desired_method == LXMessage.OPPORTUNISTIC:
|
||||||
@@ -308,7 +308,7 @@ class LXMessage:
|
|||||||
if self.__destination.type == RNS.Destination.SINGLE:
|
if self.__destination.type == RNS.Destination.SINGLE:
|
||||||
self.transport_encrypted = True
|
self.transport_encrypted = True
|
||||||
self.transport_encryption = LXMessage.ENCRYPTION_DESCRIPTION_EC
|
self.transport_encryption = LXMessage.ENCRYPTION_DESCRIPTION_EC
|
||||||
elif destination_type == RNS.Destination.GROUP:
|
elif self.__destination.type == RNS.Destination.GROUP:
|
||||||
self.transport_encrypted = True
|
self.transport_encrypted = True
|
||||||
self.transport_encryption = LXMessage.ENCRYPTION_DESCRIPTION_AES
|
self.transport_encryption = LXMessage.ENCRYPTION_DESCRIPTION_AES
|
||||||
else:
|
else:
|
||||||
@@ -1573,10 +1573,9 @@ class LXMRouter:
|
|||||||
RNS.log("Selected waiting peer "+str(selected_index)+": "+RNS.prettyhexrep(selected_peer.destination.hash), RNS.LOG_DEBUG)
|
RNS.log("Selected waiting peer "+str(selected_index)+": "+RNS.prettyhexrep(selected_peer.destination.hash), RNS.LOG_DEBUG)
|
||||||
selected_peer.sync()
|
selected_peer.sync()
|
||||||
|
|
||||||
for peer in culled_peers:
|
for peer_id in culled_peers:
|
||||||
RNS.log("Removing peer "+RNS.prettyhexrep(peer)+" due to excessive unreachability", RNS.LOG_WARNING)
|
RNS.log("Removing peer "+RNS.prettyhexrep(peer_id)+" due to excessive unreachability", RNS.LOG_WARNING)
|
||||||
try:
|
try:
|
||||||
# TODO: Check this
|
|
||||||
if peer_id in self.peers:
|
if peer_id in self.peers:
|
||||||
self.peers.pop(peer_id)
|
self.peers.pop(peer_id)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="lxmf",
|
name="lxmf",
|
||||||
version="0.1.4",
|
version="0.1.5",
|
||||||
author="Mark Qvist",
|
author="Mark Qvist",
|
||||||
author_email="mark@unsigned.io",
|
author_email="mark@unsigned.io",
|
||||||
description="Lightweight Extensible Message Format for Reticulum",
|
description="Lightweight Extensible Message Format for Reticulum",
|
||||||
|
|||||||
Reference in new issue
Block a user