mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Fix of pyngrok crash
This commit is contained in:
parent
1db86fc5f3
commit
e58157ea2a
1
.config/ngrok.yml
Normal file
1
.config/ngrok.yml
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
|
||||
from Defs.ImportManager.unsorted_will_be_replaced import run_command, run_background_command, wait, ngrok, requests, \
|
||||
regular_expression, check_output, CalledProcessError, chdir, chmod, DEVNULL, PIPE
|
||||
regular_expression, check_output, CalledProcessError, chdir, chmod, DEVNULL, PIPE, pathlib_Path
|
||||
import Defs.ThemeManager.theme as theme
|
||||
import Defs.ActionManager.Server.server_menu as server_menu
|
||||
import Defs.ActionManager.simple_informant as simple_informant
|
||||
|
@ -83,6 +83,7 @@ def start_localhost(port):
|
|||
|
||||
|
||||
def start_ngrok(port):
|
||||
ngrok.DEFAULT_CONFIG_PATH = pathlib_Path(".config/ngrok.yml")
|
||||
run_command(['killall', '-2', 'ngrok'], stdout=DEVNULL, stderr=DEVNULL)
|
||||
run_command('clear')
|
||||
# print('''
|
||||
|
|
Loading…
Reference in New Issue
Block a user