From 58407b9ec46044fbc496933cd5eeaef0e4f12c7e Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 12 May 2025 11:51:12 +0200 Subject: [PATCH] Mask IFAC passphrase in interface view --- nomadnet/ui/textui/Interfaces.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nomadnet/ui/textui/Interfaces.py b/nomadnet/ui/textui/Interfaces.py index e0f24a9..85b9b12 100644 --- a/nomadnet/ui/textui/Interfaces.py +++ b/nomadnet/ui/textui/Interfaces.py @@ -2223,7 +2223,7 @@ class ShowInterface(urwid.WidgetWrap): if screen_cols >= 145: self.history_length = screen_cols//2-margin else: - self.history_length = screen_cols-margin + self.history_length = screen_cols-(margin+2) # get interface stats interface_stats = self.parent.app.rns.get_interface_stats() @@ -2402,6 +2402,8 @@ class ShowInterface(urwid.WidgetWrap): elif key == "bandwidth": int_value = int(value) value_str = f"{int_value / 1000:.1f} kHz" + elif key == "passphrase": + value_str = len(value)*"*" else: value_str = str(value) # format display keys: "listen_port" => Listen Port