eip.json should store the name for the gateway, not the ip
in ~/.config/leap/eip.json, the default gateway is currently stored as an ip address.
instead, it should be stored as a symbolic name for the gateway.
this name will match the name in eip-service.json, where the actual set of ip addresses that correspond to that name can be found.
so, for example, instead of:
"remote_id": "198.252.153.38"
it should be something like:
"primary_gateway": "us_west"
This is because the IPs might change, and we don't want to the user's gateway selection to get lost when that happens.
see https://we.riseup.net/leap+client/eip-client-overview#eip-json for a full example.
(from redmine: created on 2012-08-22, closed on 2012-08-29)