Skip to content

Commit

Permalink
Optimize Tor loading enabling permanent data dir
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Feb 14, 2024
1 parent 9fa614e commit 96b5c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/globaleaks/services/tor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def __init__(self):
reactor,
socks_port=State.settings.socks_port,
control_port='unix:' + State.settings.tor_control,
data_directory=State.settings.tor_path
)

Service.__init__(self)
Expand Down
3 changes: 2 additions & 1 deletion backend/globaleaks/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ def eval_paths(self):

self.files_path = os.path.abspath(os.path.join(self.working_path, 'files'))
self.attachments_path = os.path.abspath(os.path.join(self.working_path, 'attachments'))
self.tor_path = os.path.abspath(os.path.join(self.working_path, 'tor'))
self.tor_control = os.path.abspath(os.path.join(self.tor_path, 'tor_control'))
self.tmp_path = os.path.abspath(os.path.join(self.working_path, 'tmp'))
self.tor_control = os.path.abspath(os.path.join(self.tmp_path, 'tor_control'))

self.db_file_path = os.path.abspath(os.path.join(self.working_path, 'globaleaks.db'))

Expand Down

0 comments on commit 96b5c76

Please sign in to comment.