mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Created ngrok_controller
This commit is contained in:
parent
23c024f872
commit
6d16f0ed0c
16
controllers/ngrok_controller.py
Normal file
16
controllers/ngrok_controller.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from pyngrok import ngrok
|
||||
from pyngrok import exception as pyngrok_exceptions
|
||||
from pyngrok import installer as pyngrok_installer
|
||||
from pyngrok import conf as pyngrok_config
|
||||
|
||||
|
||||
class NgrokController:
|
||||
def __init__(self, config_path: str = ".config/ngrok.yml", model=ngrok, exceptions=pyngrok_exceptions, installer=pyngrok_installer, config=pyngrok_config):
|
||||
self._model = model
|
||||
self._exceptions = exceptions
|
||||
self._installer = installer
|
||||
self._config = config
|
||||
self._config_path = config_path
|
||||
self._tunnels = None
|
||||
self._ngrok_url = None
|
||||
|
Loading…
Reference in New Issue
Block a user