MASQ-Project / Node

MASQ combines the benefits of VPN and Tor technology to create a superior next-generation privacy software, where users are rewarded for supporting an uncensored global web. Users gain privacy and anonymity online, while helping promote Internet Freedom.
https://masqbrowser.com
Other
169 stars 28 forks source link

GL/TLD: Geolocation Database #388

Open clandest opened 4 years ago

clandest commented 4 years ago

Build an IP-address-to-country-code geolocation database into the Node. Use it during startup on the Node's public IP address to identify the Node's country. Print the country to the console as part of the startup message.

Note: this should probably not be an actor.

kauri-hero commented 1 month ago

Suggestion - there is a performance aspect to this card because the country information is stored in compressed format. (we don't want the source code and Node binary to be large) Its now around 2.5 Mb

Once, Node boots up, there could be a hashmap in memory which allows searching of the IP blocks to be very performant