Skip to content

Commit

Permalink
Rev1845, Hide Tor console window
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Jan 22, 2017
1 parent a0c3d7f commit 2113b03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Config(object):

def __init__(self, argv):
self.version = "0.5.1"
self.rev = 1833
self.rev = 1835
self.argv = argv
self.action = None
self.config_file = "zeronet.conf"
Expand Down
4 changes: 3 additions & 1 deletion src/Tor/TorManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def startTor(self):

self.log.info("Starting Tor client %s..." % self.tor_exe)
tor_dir = os.path.dirname(self.tor_exe)
self.tor_process = subprocess.Popen(r"%s -f torrc" % self.tor_exe, cwd=tor_dir, close_fds=True)
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
self.tor_process = subprocess.Popen(r"%s -f torrc" % self.tor_exe, cwd=tor_dir, close_fds=True, startupinfo=startupinfo)
for wait in range(1,10): # Wait for startup
time.sleep(wait * 0.5)
self.enabled = True
Expand Down

0 comments on commit 2113b03

Please sign in to comment.