implement error handlng strategies for PT setup
based on the work of #8953 (closed)
-
always: select next gateway containing a VpnProfile with an Obfs4Connection -> if no more obfs4 config setup available show an error dialog with the actions:
- repeat
- cancel
- change setup config
-
prefer: select next gateway containing a VpnProfile with an Obfs4Connection, if no more available, repeat with all Gateways containing a VpnProfile with an OpenvpnConnection, starting from the nearest timezone related to the phone's position -> if no more config setups available show an error dialog with the acctions:
- repeat
- cancel
-
no: select next openvpn configuration (checking different ports and UDP/TCP for each gateway, then next nearest gateway) -> if no more openvpn config setups available show an error dialog indicating that openvpn might be blocked and with the following actions:
- repeat
- cancel
- change setup config