netcontroller now gets the tor hs id

This commit is contained in:
Kevin Froman 2018-01-19 15:28:34 -06:00
parent 9d91e77ec5
commit d2d60fe6ce
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
2 changed files with 20 additions and 12 deletions

View file

@ -20,7 +20,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
'''
import sys, os, configparser, base64, random, getpass, shutil, subprocess, requests
import sys, os, configparser, base64, random, getpass, shutil, subprocess, requests, time
import gui, api, colors, core
from onionrutils import OnionrUtils
from colors import Colors
@ -119,10 +119,10 @@ class Onionr:
''' Start the Onionr communication daemon
'''
if not os.environ.get("WERKZEUG_RUN_MAIN") == "true":
net = NetController(self.config['PORT'])
net = NetController(self.config['CLIENT']['PORT'])
print('Tor is starting...')
net.startTor(self.config['CLIENT']['PORT'])
time.sleep(5)
net.startTor()
time.sleep(1)
subprocess.Popen(["./communicator.py", "run"])
print('Started communicator')
api.API(self.config, self.debug)