mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Created close_latest_connection method for ngrok
This commit is contained in:
parent
6d16f0ed0c
commit
0e3ede4f0a
|
@ -14,3 +14,9 @@ class NgrokController:
|
||||||
self._tunnels = None
|
self._tunnels = None
|
||||||
self._ngrok_url = None
|
self._ngrok_url = None
|
||||||
|
|
||||||
|
def close_latest_connection(self):
|
||||||
|
try:
|
||||||
|
self._model.disconnect(self._ngrok_url)
|
||||||
|
except self._exceptions.PyngrokError:
|
||||||
|
print("Can't find any latest connections.") # FIXME replace with View entry
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user