Directly specify device type for tweak menu

Former-commit-id: 4969b540d5380edaddc26e7cd9d99a61f1a3ddbc
Former-commit-id: 9c375230650f780180d0d96952397814bc2eacc2
This commit is contained in:
2023-06-08 14:53:52 -04:00
parent 93bffe2587
commit 2322140af7
+2 -2
View File
@@ -830,7 +830,7 @@ if __name__ == "__main__":
elif arguments[0] == 'tweak':
success_flag = True
from stweak import global_menu
global_menu(device_type, 'configuration options:')
global_menu('client', 'configuration options:')
# server arguments
else:
@@ -847,7 +847,7 @@ if __name__ == "__main__":
elif arg_count == 1 and arguments[0] == 'tweak':
success_flag = True
from stweak import global_menu
global_menu(device_type, 'configuration options:')
global_menu('server', 'configuration options:')
elif arg_count > 2 and arguments[1] in ('add', 'del'):
success_flag = True
whitelist_manage(arguments[2])