mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
tor: Split app initialziation
Tests: - When onion services are enabled, upon startup, names module shows the onion domain. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
4b3a4020d9
commit
fe482256f6
@ -95,6 +95,8 @@ class TorApp(app_module.App):
|
||||
backup_restore = BackupRestore('backup-restore-tor', **manifest.backup)
|
||||
self.add(backup_restore)
|
||||
|
||||
def post_init(self):
|
||||
"""Perform post initialization operations."""
|
||||
# Register hidden service name with Name Services module.
|
||||
setup_helper = globals()['setup_helper']
|
||||
if setup_helper.get_state() != 'needs-setup' and \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user