Merge pull request #449 from pdxlocations/no-psk

Show Channels with No PSK on --info
This commit is contained in:
Ben Meadors
2023-06-25 14:48:04 -05:00
committed by GitHub

View File

@@ -49,8 +49,8 @@ class Node:
for c in self.channels:
# print('c.settings.psk:', c.settings.psk)
cStr = stripnl(MessageToJson(c.settings))
# only show if there is no psk (meaning disabled channel)
if c.settings.psk:
# don't show disabled channels
if channel_pb2.Channel.Role.Name(c.role)!="DISABLED":
print(
f" {channel_pb2.Channel.Role.Name(c.role)} psk={pskToString(c.settings.psk)} {cStr}"
)