mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
don't put chan_name in log_rx if we don't know it
This commit is contained in:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "meshcore"
|
name = "meshcore"
|
||||||
version = "2.3.4"
|
version = "2.3.5"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
|
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
|
||||||
{ name="Alex Wolden", email="awolden@gmail.com" },
|
{ name="Alex Wolden", email="awolden@gmail.com" },
|
||||||
|
|||||||
@@ -108,17 +108,14 @@ class MeshcorePacketParser:
|
|||||||
channel = c
|
channel = c
|
||||||
break
|
break
|
||||||
|
|
||||||
chan_name = ""
|
|
||||||
|
|
||||||
if channel is None :
|
|
||||||
chan_name = chan_hash
|
|
||||||
else:
|
|
||||||
chan_name = channel["channel_name"]
|
|
||||||
|
|
||||||
log_data["chan_hash"] = chan_hash
|
log_data["chan_hash"] = chan_hash
|
||||||
log_data["cipher_mac"] = cipher_mac.hex()
|
log_data["cipher_mac"] = cipher_mac.hex()
|
||||||
log_data["crypted"] = msg.hex()
|
log_data["crypted"] = msg.hex()
|
||||||
log_data["chan_name"] = chan_name
|
|
||||||
|
chan_name = ""
|
||||||
|
if not channel is None :
|
||||||
|
chan_name = channel["channel_name"]
|
||||||
|
log_data["chan_name"] = chan_name
|
||||||
|
|
||||||
if not channel is None and self.decrypt_channels:
|
if not channel is None and self.decrypt_channels:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user