mirror of
https://github.com/markqvist/LXMF.git
synced 2025-07-29 18:08:39 -04:00
Updated according to RNS API.
This commit is contained in:
parent
4d3e529e63
commit
6cb3a23c9d
1 changed files with 11 additions and 15 deletions
|
@ -542,10 +542,6 @@ class LXMRouter:
|
||||||
try:
|
try:
|
||||||
message = LXMessage.unpack_from_bytes(lxmf_data)
|
message = LXMessage.unpack_from_bytes(lxmf_data)
|
||||||
|
|
||||||
if RNS.Reticulum.should_allow_unencrypted():
|
|
||||||
message.transport_encrypted = False
|
|
||||||
message.transport_encryption = LXMessage.ENCRYPTION_DESCRIPTION_UNENCRYPTED
|
|
||||||
else:
|
|
||||||
if destination_type == RNS.Destination.SINGLE:
|
if destination_type == RNS.Destination.SINGLE:
|
||||||
message.transport_encrypted = True
|
message.transport_encrypted = True
|
||||||
message.transport_encryption = LXMessage.ENCRYPTION_DESCRIPTION_RSA
|
message.transport_encryption = LXMessage.ENCRYPTION_DESCRIPTION_RSA
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue