mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
ensure ifac_signature is hex as json_response can't serialize bytes
This commit is contained in:
parent
bcd78cbca9
commit
9741aa3526
1 changed files with 5 additions and 0 deletions
5
web.py
5
web.py
|
|
@ -697,6 +697,11 @@ class ReticulumWebChat:
|
|||
if "transport_id" in interface_stats:
|
||||
interface_stats["transport_id"] = interface_stats["transport_id"].hex()
|
||||
|
||||
# ensure ifac_signature is hex as json_response can't serialize bytes
|
||||
for interface in interface_stats["interfaces"]:
|
||||
if "ifac_signature" in interface and interface["ifac_signature"]:
|
||||
interface["ifac_signature"] = interface["ifac_signature"].hex()
|
||||
|
||||
return web.json_response({
|
||||
"interface_stats": interface_stats,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue