PiRogueToolSuite / pirogue-admin

PiRogue administration agent
GNU General Public License v3.0
0 stars 0 forks source link

Consider using https://ip-info.pts-project.org/(json) in autodetection code #16

Open CyrilBrulebois opened 3 months ago

CyrilBrulebois commented 3 months ago

Initially, icanhazip.com is used by the autodetection code, but https://ip-info.pts-project.org/ would give us more information, namely a country code and a country name.

That could be use to adjust the Wi-Fi settings, and maybe something like locales/timezones. There are many countries with a bunch of official languages, and a number of countries across several timezones though.

This issue is primarily about the IPv4 detection: it might be best not to expose users to third-party services, but on the flip side that'd mean making extra sure the PTS-provided service stays available over time.