-
Notifications
You must be signed in to change notification settings - Fork 466
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Certain local checks cannot be conducted (without a proxy at least) when protocols do not match.
Right now, there are a number of assumptions when it comes to local checks (audits, nip-11 fetches, etc)
- The web-app is ran on is
https:// - The websocket being connected to is
wss:// - The server fetching from is
https://
Add a discriminator with that populates application capabilities that can be used in conditions to enable/disable features
- When app is running on HTTPS, only HTTPS/WSS relays can be connected to client side
- When app is running on HTTP, only HTTP/WS relays can be connected to client side
Additionally, in preparation for alternative network data
- When app is running on TOR, only TOR relays can be connected to client-side (for now)
- When app is runnning on clearnet, only clearnet relays can be conected to client-side (unless tor proxy is defined)
Note
There's potential complexity and conflicts with the logic above since tor relays run on ws://
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request