tor: Rename Hidden service to Onion service

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2023-04-30 19:27:31 -04:00 committed by Sunil Mohan Adapa
parent f9e039b4cb
commit 3c4771ed00
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 5 additions and 5 deletions

View File

@ -94,7 +94,7 @@ class TorApp(app_module.App):
def post_init(self):
"""Perform post initialization operations."""
# Register hidden service name with Name Services module.
# Register onion service name with Name Services module.
if (not self.needs_setup() and self.is_enabled()
and app_is_running(self)):
status = utils.get_status(initialized=False)
@ -162,7 +162,7 @@ class TorApp(app_module.App):
if status['hs_enabled']:
hs_hostname = status['hs_hostname'].split('.onion')[0]
results.append([
_('Hidden service is version 3'),
_('Onion service is version 3'),
'passed' if len(hs_hostname) == 56 else 'failed'
])
@ -203,7 +203,7 @@ class TorApp(app_module.App):
def update_hidden_service_domain(status=None):
"""Update HS domain with Name Services module."""
"""Update onion service domain with Name Services module."""
if not status:
status = utils.get_status()

View File

@ -101,9 +101,9 @@ class TorForm(forms.Form): # pylint: disable=W0232
'to censor this node. This helps others circumvent censorship.'),
box_name=_(cfg.box_name)))
hs_enabled = forms.BooleanField(
label=_('Enable Tor Hidden Service'), required=False,
label=_('Enable Tor Onion Service'), required=False,
help_text=format_lazy(
_('A hidden service will allow {box_name} to provide selected '
_('An onion service will allow {box_name} to provide selected '
'services (such as wiki or chat) without revealing its '
'location. Do not use this for strong anonymity yet.'),
box_name=_(cfg.box_name)))