Mask IFAC passphrase in interface view
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Has been cancelled

This commit is contained in:
Mark Qvist 2025-05-12 11:51:12 +02:00
parent 2c7b35033b
commit 58407b9ec4

View file

@ -2223,7 +2223,7 @@ class ShowInterface(urwid.WidgetWrap):
if screen_cols >= 145: if screen_cols >= 145:
self.history_length = screen_cols//2-margin self.history_length = screen_cols//2-margin
else: else:
self.history_length = screen_cols-margin self.history_length = screen_cols-(margin+2)
# get interface stats # get interface stats
interface_stats = self.parent.app.rns.get_interface_stats() interface_stats = self.parent.app.rns.get_interface_stats()
@ -2402,6 +2402,8 @@ class ShowInterface(urwid.WidgetWrap):
elif key == "bandwidth": elif key == "bandwidth":
int_value = int(value) int_value = int(value)
value_str = f"{int_value / 1000:.1f} kHz" value_str = f"{int_value / 1000:.1f} kHz"
elif key == "passphrase":
value_str = len(value)*"*"
else: else:
value_str = str(value) value_str = str(value)
# format display keys: "listen_port" => Listen Port # format display keys: "listen_port" => Listen Port