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:
parent
4ef5c714fc
commit
7a263851f2
@ -539,10 +539,13 @@ fn get_app_metadata(app_id: &str) -> AppMetadata {
|
|||||||
fn tor_service_name(app_id: &str) -> Option<&'static str> {
|
fn tor_service_name(app_id: &str) -> Option<&'static str> {
|
||||||
match app_id {
|
match app_id {
|
||||||
"archipelago" => Some("archipelago"),
|
"archipelago" => Some("archipelago"),
|
||||||
|
"bitcoin" | "bitcoin-knots" | "bitcoind" => Some("bitcoin"),
|
||||||
|
"electrumx" | "electrs" | "electrum" => Some("electrumx"),
|
||||||
"lnd" | "lnd-ui" => Some("lnd"),
|
"lnd" | "lnd-ui" => Some("lnd"),
|
||||||
"btcpay" | "btcpay-server" | "btcpayserver" => Some("btcpay"),
|
"btcpay" | "btcpay-server" | "btcpayserver" => Some("btcpay"),
|
||||||
"mempool" | "mempool-web" | "mempool-frontend" => Some("mempool"),
|
"mempool" | "mempool-web" | "mempool-frontend" => Some("mempool"),
|
||||||
"fedimint" => Some("fedimint"),
|
"fedimint" | "fedimint-gateway" => Some("fedimint"),
|
||||||
|
"filebrowser" => Some("filebrowser"),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user