- 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:
@@ -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?,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user