mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
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:
parent
f9e039b4cb
commit
3c4771ed00
@ -94,7 +94,7 @@ class TorApp(app_module.App):
|
|||||||
|
|
||||||
def post_init(self):
|
def post_init(self):
|
||||||
"""Perform post initialization operations."""
|
"""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()
|
if (not self.needs_setup() and self.is_enabled()
|
||||||
and app_is_running(self)):
|
and app_is_running(self)):
|
||||||
status = utils.get_status(initialized=False)
|
status = utils.get_status(initialized=False)
|
||||||
@ -162,7 +162,7 @@ class TorApp(app_module.App):
|
|||||||
if status['hs_enabled']:
|
if status['hs_enabled']:
|
||||||
hs_hostname = status['hs_hostname'].split('.onion')[0]
|
hs_hostname = status['hs_hostname'].split('.onion')[0]
|
||||||
results.append([
|
results.append([
|
||||||
_('Hidden service is version 3'),
|
_('Onion service is version 3'),
|
||||||
'passed' if len(hs_hostname) == 56 else 'failed'
|
'passed' if len(hs_hostname) == 56 else 'failed'
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -203,7 +203,7 @@ class TorApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def update_hidden_service_domain(status=None):
|
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:
|
if not status:
|
||||||
status = utils.get_status()
|
status = utils.get_status()
|
||||||
|
|
||||||
|
|||||||
@ -101,9 +101,9 @@ class TorForm(forms.Form): # pylint: disable=W0232
|
|||||||
'to censor this node. This helps others circumvent censorship.'),
|
'to censor this node. This helps others circumvent censorship.'),
|
||||||
box_name=_(cfg.box_name)))
|
box_name=_(cfg.box_name)))
|
||||||
hs_enabled = forms.BooleanField(
|
hs_enabled = forms.BooleanField(
|
||||||
label=_('Enable Tor Hidden Service'), required=False,
|
label=_('Enable Tor Onion Service'), required=False,
|
||||||
help_text=format_lazy(
|
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 '
|
'services (such as wiki or chat) without revealing its '
|
||||||
'location. Do not use this for strong anonymity yet.'),
|
'location. Do not use this for strong anonymity yet.'),
|
||||||
box_name=_(cfg.box_name)))
|
box_name=_(cfg.box_name)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user