mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
ensure network_id is converted to hex in interface stats api response
This commit is contained in:
parent
97be61e36c
commit
e49df24360
1 changed files with 4 additions and 0 deletions
|
|
@ -1725,6 +1725,10 @@ class ReticulumMeshChat:
|
|||
if "transport_id" in interface_stats:
|
||||
interface_stats["transport_id"] = interface_stats["transport_id"].hex()
|
||||
|
||||
# ensure network_id is hex as json_response can't serialize bytes
|
||||
if "network_id" in interface_stats:
|
||||
interface_stats["network_id"] = interface_stats["network_id"].hex()
|
||||
|
||||
# ensure probe_responder is hex as json_response can't serialize bytes
|
||||
if "probe_responder" in interface_stats and interface_stats["probe_responder"] is not None:
|
||||
interface_stats["probe_responder"] = interface_stats["probe_responder"].hex()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue