mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Restyled by autopep8
This commit is contained in:
parent
f908d3c002
commit
a9ee123227
@ -19,18 +19,20 @@ class NgrokController:
|
||||
try:
|
||||
self._model.disconnect(self._ngrok_url)
|
||||
except self._exceptions.PyngrokError:
|
||||
print("Can't find any latest connections.") # FIXME replace with View entry
|
||||
# FIXME replace with View entry
|
||||
print("Can't find any latest connections.")
|
||||
pass
|
||||
|
||||
def maintain_default_config(self):
|
||||
self._installer.install_default_config(self._config_path)
|
||||
|
||||
|
||||
def activate_config_path(self):
|
||||
self._ngrok_config = self._config.PyngrokConfig(config_path=self._config_path)
|
||||
self._ngrok_config = self._config.PyngrokConfig(
|
||||
config_path=self._config_path)
|
||||
|
||||
def establish_connection(self, port='80'):
|
||||
self._model.connect(port=port, name='HiddenEye Connection', pyngrok_config=self._ngrok_config)
|
||||
self._model.connect(port=port, name='HiddenEye Connection',
|
||||
pyngrok_config=self._ngrok_config)
|
||||
|
||||
def obtain_tunnels(self):
|
||||
self._tunnels = self._model.get_tunnels()
|
||||
@ -41,4 +43,3 @@ class NgrokController:
|
||||
|
||||
def obtain_ngrok_url(self):
|
||||
self._ngrok_url = self._tunnels[0]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user