gluetun icon indicating copy to clipboard operation
gluetun copied to clipboard

Feature request: Consistent naming of SERVER_COUNTRIES

Open ezekieldas opened this issue 1 year ago • 1 comments

What's the feature 🧐

This is a "nice to have", particularly in the area of automation of containers and interoperability with other applications.

I'm exploring different service providers (VPN_SERVICE_PROVIDER) and straight away, between ivpn and Mullvad I've found the former requires 'United States' and the latter, 'USA' in a SERVER_COUNTRIES definition.

At cursory glance, it appears our friends at ivpn (ivpn API) are using Alpha-2 codes, as described here:

https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

I can research further if there are strong recommendations in terms of using this in software applications, databases, etc.

Other thoughts on this:

  • I haven't looked but wouldn't be surprised to find libraries that translate these names (eg, 'United Kingdom', 'England' = GB)
  • Perhaps another chapter but city names as well? IATA Codes perhaps?

Extra information and references

No response

ezekieldas avatar Nov 04 '23 16:11 ezekieldas