mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-02 06:36:14 -04:00
Improved rnstatus output
This commit is contained in:
parent
5606b64317
commit
b3a439993d
2 changed files with 15 additions and 6 deletions
|
@ -761,7 +761,7 @@ class Reticulum:
|
|||
response = rpc_connection.recv()
|
||||
return response
|
||||
else:
|
||||
stats = []
|
||||
interfaces = []
|
||||
for interface in RNS.Transport.interfaces:
|
||||
ifstats = {}
|
||||
|
||||
|
@ -800,7 +800,12 @@ class Reticulum:
|
|||
ifstats["status"] = interface.online
|
||||
ifstats["mode"] = interface.mode
|
||||
|
||||
stats.append(ifstats)
|
||||
interfaces.append(ifstats)
|
||||
|
||||
stats = {}
|
||||
stats["interfaces"] = interfaces
|
||||
if Reticulum.transport_enabled():
|
||||
stats["transport_id"] = RNS.Transport.identity.hash
|
||||
|
||||
return stats
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue