don't show tor transport box if there is none
This commit is contained in:
parent
1bf365aff4
commit
1aea6c3362
2 changed files with 25 additions and 0 deletions
|
@ -145,4 +145,6 @@ class PrivateEndpoints:
|
|||
@private_endpoints_bp.route('/gettoraddress')
|
||||
def get_tor_address():
|
||||
"""Return public Tor v3 Onion address for this node"""
|
||||
if not config.get('general.security_level', 0):
|
||||
abort(404)
|
||||
return Response(get_tor()[0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue