From c7fa3e3d0934bc671d03e75db7d53eed3b7dd1e1 Mon Sep 17 00:00:00 2001 From: rwinkhart Date: Thu, 30 Jun 2022 21:56:08 -0400 Subject: [PATCH] Disabled all arguments on server except for 'tweak' --- bin/sshyp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/sshyp.py b/bin/sshyp.py index 9b5cd40..3d257ae 100755 --- a/bin/sshyp.py +++ b/bin/sshyp.py @@ -667,6 +667,9 @@ if __name__ == "__main__": ssh_error = int(open(path.expanduser('~/.config/sshyp/ssh-error')).read().strip()) if ssh_error != 0: ssh_error = copy_name_check(port, username_ssh, ip, client_device_name) + else: + print('running as server, option disabled') + s_exit(0) except (FileNotFoundError, IndexError): if device_type.lower() != 's': print('\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')