Merge pull request #832 from Mushinako/master

Should Fix #830
dev
sTiKyt 2020-09-20 16:43:12 +00:00 committed by GitHub
commit f908d3c002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ class NgrokController:
self._config_path = config_path
self._tunnels = None
self._ngrok_url = None
self._ngrok_config = None
def close_latest_connection(self):
try:
@ -26,10 +27,10 @@ class NgrokController:
def activate_config_path(self):
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._config_path)
self._model.connect(port=port, name='HiddenEye Connection', pyngrok_config=self._ngrok_config)
def obtain_tunnels(self):
self._tunnels = self._model.get_tunnels()