-
-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Labels
Description
Hi!
With default settings TRIFA (and other Tox clients) use TCP relays for communication with other clients. So the traffic goes through unknown servers, we cannot trust these servers for sure. The server cannot decrypt client's data, but it can collect metadata: IP, port, traffic profile, delays. It is possible to use UDP, but it does not work well, and an ISP can observe IPs of peers. Someone might prefer to avoid some servers in bad countries. TRIFA has an option to add a node, but there is no option to replace built-in nodes.
I would be great to have an ability to control the node list. I see two options here:
- Simple ability to load a JSON file to replace all built-in nodes. I think this option is not very hard to implement: just remove hardcoded nodes from the sources and add a small JSON loader.
- Whitelist for all communications. Not just restrict bootstrap node/relay list, but filter out any IPs if they are not in the whitelist. Useful for DHT and P2P, but hard to implement.
Thank you for your project!