- Adds a new Settings page for Tor

- Adjusts all web calls to use Tor if that setting is enabled.
- Allows .onion urls to use Tor
- Blocks localhost from using Tor
- Moves OTS web calls to use the Tor Proxy as well.
- Starts to build all OkHttp clients from a main root node to keep the same thread pool
- Refactors the URL Preview code
- Changes ammolite to force proxy.
- Changes NIP-47 implementation to force relay for the NWC connection.
This commit is contained in:
Vitor Pamplona
2024-09-25 17:58:37 -04:00
parent b682e90f81
commit afe8a06486
74 changed files with 1904 additions and 1245 deletions
@@ -45,7 +45,7 @@ class Nip47WalletConnect {
throw IllegalArgumentException("Hostname is not a valid Nostr Pubkey")
}
val relay = url.getQueryParameter("relay")
val relay = url.getQueryParameter("relay") ?: throw IllegalArgumentException("Relay cannot be null")
val secret = url.getQueryParameter("secret")
return Nip47URI(pubkeyHex, relay, secret)
@@ -54,7 +54,7 @@ class Nip47WalletConnect {
data class Nip47URI(
val pubKeyHex: HexKey,
val relayUri: String?,
val relayUri: String,
val secret: HexKey?,
)
}