From 7dece996b050b6dc1f739e07febe0174530f71a7 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Sat, 22 Aug 2020 18:42:52 +0000 Subject: [PATCH] Created obtain_tunnels method for ngrok --- controllers/ngrok_controller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controllers/ngrok_controller.py b/controllers/ngrok_controller.py index 4c616a7..b9d1e1f 100644 --- a/controllers/ngrok_controller.py +++ b/controllers/ngrok_controller.py @@ -29,4 +29,7 @@ class NgrokController: 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._config_path) \ No newline at end of file + self._model.connect(port=port, name='HiddenEye Connection', pyngrok_config=self._config_path) + + def obtain_tunnels(self): + self._tunnels = self._model.get_tunnels() \ No newline at end of file