diff --git a/docker/lnd-ui/index.html b/docker/lnd-ui/index.html index 90f0a176..c807e705 100644 --- a/docker/lnd-ui/index.html +++ b/docker/lnd-ui/index.html @@ -634,6 +634,11 @@ const data = await resp.json(); if (data.cert_base64url) { lndConnInfo = data; + // Auto-select local mode when Tor is not available + if (!data.tor_onion) { + document.getElementById('connMode').value = 'rest-local'; + document.getElementById('connSubtitle').textContent = 'Tor hidden service not available. Use Local Network mode.'; + } try { updateConnInfo(); } catch(ue) { document.getElementById('lndQrBox').innerHTML = '
Update error: ' + ue.message + '
'; return;