Open ignoramous opened 3 years ago
Underlying networks may themselves come with specific-configuration (for WIFI and CELLULAR transport types at least).
WIFI
CELLULAR
In this case, if underlying network sets a http-proxy, VPN's own http-proxy setting should be set as appropriate but let the user can override it through app's Settings.
Also, VPN needn't be set to METERED or NOT_METERED depending on the underlying active network because Android handles that for free.
METERED
NOT_METERED
See: #225
Things to reflect into VPN over from LinkProperties:
LinkProperties
http-proxy
nat64-prefix
mtu
dns-servers
dns-search-domains
For nat64-prefix https://github.com/celzero/firestack/commit/6c784b61ab6ead980af68ac856a5359470f60112
MTU is done, too: https://github.com/celzero/rethink-app/commit/fa48cde7e70ec69b0a8b171fa79d4a537b7f6075, https://github.com/celzero/rethink-app/commit/75e493ea49de4c7bcd8e92158882614d92f6713d
Underlying networks may themselves come with specific-configuration (for
WIFI
andCELLULAR
transport types at least).In this case, if underlying network sets a http-proxy, VPN's own http-proxy setting should be set as appropriate but let the user can override it through app's Settings.
Also, VPN needn't be set to
METERED
orNOT_METERED
depending on the underlying active network because Android handles that for free.See: #225