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 authored and Sunil Mohan Adapa committed 2023-05-02 08:44:00 -07:00
1 parent f9e039b4cb
commit 3c4771ed00
2 files changed
+5 -5

No files matched your search

+3 -3
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()
+2 -2
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)))