fix: add bitcoin, electrumx, filebrowser to tor_service_name mapping

These services had hidden services configured in torrc but their
app IDs weren't mapped in tor_service_name(), so read_tor_address()
returned None and the UI showed them as having no Tor service.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-04-01 18:22:30 +01:00
parent 4ef5c714fc
commit 7a263851f2

View File

@@ -539,10 +539,13 @@ fn get_app_metadata(app_id: &str) -> AppMetadata {
fn tor_service_name(app_id: &str) -> Option<&'static str> {
match app_id {
"archipelago" => Some("archipelago"),
"bitcoin" | "bitcoin-knots" | "bitcoind" => Some("bitcoin"),
"electrumx" | "electrs" | "electrum" => Some("electrumx"),
"lnd" | "lnd-ui" => Some("lnd"),
"btcpay" | "btcpay-server" | "btcpayserver" => Some("btcpay"),
"mempool" | "mempool-web" | "mempool-frontend" => Some("mempool"),
"fedimint" => Some("fedimint"),
"fedimint" | "fedimint-gateway" => Some("fedimint"),
"filebrowser" => Some("filebrowser"),
_ => None,
}
}