From e6245dab2624aebf2dd347d7533cbcbf496f7a19 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Sat, 22 Aug 2020 18:42:33 +0000 Subject: [PATCH] Created establish_connection 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 678c81b..4c616a7 100644 --- a/controllers/ngrok_controller.py +++ b/controllers/ngrok_controller.py @@ -26,4 +26,7 @@ class NgrokController: def activate_config_path(self): - self._config.PyngrokConfig(config_path=self._config_path) \ No newline at end of file + 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