Skip to content

Gateway selector

cyberta requested to merge gateway_selector into master

Navigation Drawer, Bridges disabled, auto-select enabled: entry shows "location with best connection"

location1

Tap on "Select location" opens a new Fragment, showing the auto-selection switch and a hint.

location2

Disabling the auto-selection switch reveals the list of available Gateways supporting the current transport (in this case openvpn). The list is sorted by the distance to the user using the geoip service v1 or v2 ("menshen") if available or timezone calculation if not. Gateways at the top of the list are likely to be faster as those at the bottom. If the provider supports the menshen geoip/load-balancing service, indicators would be shown.

location3

The user can now select a gateway:

location4

Tapping on "Connect" will guide the user to the main view, showing the connection state. The user cannot start a vpn connection by tapping directly on a list item, because we don't want to handle multiple connection attempts at the same time (the user could rapidly tap on multiple cities, vpn connection attempts would have to be shutdown immediately, so that always only one connection attempt is made... that's a call for trouble). For the same reason the user is guided to the main view, after a connection attempt has been initiated.

location5

if a location has been selected, the preferred location is shown in the navigation drawer:

location8

For now the list of gateways is filtered by the supported transport. You can switch the lists by enabling/disabling Bridges in the navigation drawer. This (amongst other things) needs further refinement. With Bridges enabled:

location6

Edited by cyberta

Merge request reports