It is not required, it is just a way to automatically select a probably correct language (and then let the user change it if they want to).
Which protocol would you use for that? Also, how do you know there is a single gateway between you and the internet? I don’t think there is any standard way to get the public IP this way, you need the collaboration of an external server which can tell you which IP it sees your data coming from.
Note that Mozilla Location Services already uses the IP address in addition to Wifi networks.
Yes, they get a list of wifi networks near you, and your public IP address. And they know you are running Haiku because of the API key used to query their server. That’s all the info they get. There isn’t really a way to map this to a specific user.
So, essentially, all they know is “someone in this neighborhood is running Haiku”. And they probably don’t keep that data in such a detailed way, either, what would they do with it?
Other things to note:
- You can opt out by renaming your Wifi network: MLS - Opt-Out which I hope you already did if you are worried about these things since it’s used by other similar services run by more evil companies
Also, this will only work if:
- You run FirstBootPrompt (boot Haiku for the first time)
- Your network is up
- Your wifi is enabled
When you run FirstBootPrompt, the only ways you can have network up is wired network. There is no chance that you have already configured a Wifi access point at this stage. Overall it seems a bit unlikely that this would work all the time, and possibly we could add other detection methods such as asking USB keyboards if they can provide their language (but I think only Apple ones do…), get info from UEFI if possible, and other things like that.