mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-11-04 19:07:19 +00:00
Mask IFAC passphrase in interface view
This commit is contained in:
1 parent
2c7b35033b
commit
58407b9ec4
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user