mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 16:47:14 -04:00
Directly specify device type for tweak menu
Former-commit-id: 4969b540d5380edaddc26e7cd9d99a61f1a3ddbc Former-commit-id: 9c375230650f780180d0d96952397814bc2eacc2
This commit is contained in:
+2
-2
@@ -830,7 +830,7 @@ if __name__ == "__main__":
|
|||||||
elif arguments[0] == 'tweak':
|
elif arguments[0] == 'tweak':
|
||||||
success_flag = True
|
success_flag = True
|
||||||
from stweak import global_menu
|
from stweak import global_menu
|
||||||
global_menu(device_type, 'configuration options:')
|
global_menu('client', 'configuration options:')
|
||||||
|
|
||||||
# server arguments
|
# server arguments
|
||||||
else:
|
else:
|
||||||
@@ -847,7 +847,7 @@ if __name__ == "__main__":
|
|||||||
elif arg_count == 1 and arguments[0] == 'tweak':
|
elif arg_count == 1 and arguments[0] == 'tweak':
|
||||||
success_flag = True
|
success_flag = True
|
||||||
from stweak import global_menu
|
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'):
|
elif arg_count > 2 and arguments[1] in ('add', 'del'):
|
||||||
success_flag = True
|
success_flag = True
|
||||||
whitelist_manage(arguments[2])
|
whitelist_manage(arguments[2])
|
||||||
|
|||||||
Reference in New Issue
Block a user