RoyDefined / WebDoomer

WebDoomer is a fast and efficient Zandronum and QZandronum server browser as a web app.
GNU General Public License v3.0
4 stars 0 forks source link

IP geolocation support for servers that use `XIP` for `SQF2_COUNTRY` #5

Open RoyDefined opened 5 months ago

RoyDefined commented 5 months ago

Is your feature request related to a problem? Please describe. The server list shows a lot of countries as "unknown" despite other applications such as Doomseeker showing a country.

Describe the solution you'd like Servers that use the XIP value for SQF2_COUNTRY should have the app attempt IP geolocation to determine the server's country as described by the Launcher Protocol. If geolocation is unsupported, disabled, or fails, then the server's country should be displayed as unknown.

This feature probably requires database support to avoid loading everything in memory.

Describe alternatives you've considered N/A

Additional context This is likely the best option when it comes to free geolocation data, and also used by Doomseeker and such: https://dev.maxmind.com/geoip/geolite2-free-geolocation-data