Properly reflect tor status

This commit is contained in:
Taylor Helsper 2022-09-12 21:59:41 -05:00
parent 66e4a0a02f
commit b6b36586f2
2 changed files with 3 additions and 2 deletions

View File

@ -66,11 +66,11 @@
<div class="app_tile_row">
<div class="info_tile">
<div class="info_tile_header">Bitcoin</div>
<div class="info_tile_contents">Tor Enabled</div>
<div class="info_tile_contents">{% if is_btc_lnd_tor_enabled %}Tor Enabled{% else %}Tor Disabled{%endif%}</div>
</div>
<div class="info_tile">
<div class="info_tile_header">Lightning</div>
<div class="info_tile_contents">Tor Enabled</div>
<div class="info_tile_contents">{% if is_btc_lnd_tor_enabled %}Tor Enabled{% else %}Tor Disabled{%endif%}</div>
</div>
<div class="info_tile">
<div class="info_tile_header">Version</div>

View File

@ -103,6 +103,7 @@ def page_tor():
templateData = {
"title": "myNode Tor Services",
"version": get_tor_version(),
"is_btc_lnd_tor_enabled": settings_file_exists("btc_lnd_tor_enabled"),
"v3_services": v3_services,
"fully_noded_link": fully_noded_link,
"ui_settings": read_ui_settings()