diff --git a/Defs/Actions.py b/Defs/Actions.py index 65dd5a1..7e200f7 100644 --- a/Defs/Actions.py +++ b/Defs/Actions.py @@ -401,7 +401,7 @@ def runNgrok(port): {0}http://github.com/darksecdevelopers {0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ NGROK SERVER ]{1}!! {0}\n-------------------------------'''.format(MAIN0, MAIN2)) - system('./Server/ngrok http {} > /dev/null &'.format(port)) + system('killall -2 ngrok > /dev/null 2>&1 && ./Server/ngrok http {} > /dev/null &'.format(port)) while True: sleep(2) system(