mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-10-27 20:50:01 -04:00
Client-side whitelist error message now shows up will all additional whitelist options
This commit is contained in:
1 parent
b8b99755f0
commit
d069ab82f9
1 file changed
+8
-6
+8
-6
@@ -783,13 +783,15 @@ if __name__ == "__main__":
|
|||||||
== 'version' or argument == '-v':
|
== 'version' or argument == '-v':
|
||||||
print_info()
|
print_info()
|
||||||
elif argument_list[1] == 'whitelist':
|
elif argument_list[1] == 'whitelist':
|
||||||
if len(argument_list) == 2:
|
if device_type == 'server':
|
||||||
|
if len(argument_list) == 2:
|
||||||
|
print_info()
|
||||||
|
elif argument_list[2] == 'list' or argument_list[2] == '-l':
|
||||||
|
whitelist_list()
|
||||||
|
elif argument_list[2] == 'add' or argument_list[2] == 'delete' or argument_list[2] == 'del':
|
||||||
|
whitelist_manage()
|
||||||
|
else:
|
||||||
print_info()
|
print_info()
|
||||||
elif (argument_list[2] == 'list' or argument_list[2] == '-l') and device_type == 'server':
|
|
||||||
whitelist_list()
|
|
||||||
elif (argument_list[2] == 'add' or argument_list[2] == 'delete' or argument_list[2] == 'del') and \
|
|
||||||
device_type == 'server':
|
|
||||||
whitelist_manage()
|
|
||||||
elif argument_list[1] == 'add':
|
elif argument_list[1] == 'add':
|
||||||
if len(argument_list) == 2:
|
if len(argument_list) == 2:
|
||||||
print_info()
|
print_info()
|
||||||
|
|||||||
Reference in new issue
Block a user